V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
karvinchen
V2EX  ›  Node.js

又开始 hello world,这一次 nodejs

  •  
  •   karvinchen · Jun 10, 2014 · 4350 views
    This topic created in 4351 days ago, the information mentioned may be changed or developed.
    顺带问一下,大家觉得jade好还是ejs好呢?现在装的是其最新版:0.10.28。打算下周的新项目用nodejs来做后台
    9 replies    2014-06-11 17:02:11 +08:00
    andyhu
        1
    andyhu  
       Jun 10, 2014
    ejs,不推荐jade,又慢又怪异
    sanddudu
        2
    sanddudu  
       Jun 10, 2014
    jade 有人测试过,在很大量代码的情况下速度是最慢的
    handlebars 感觉是个不错的替代品
    andyhu
        3
    andyhu  
       Jun 10, 2014
    @sanddudu 比速度的话还是 doT.js比较强
    TangMonk
        4
    TangMonk  
       Jun 10, 2014
    主要是前段写的HTML,你还要手动转下
    yimity
        5
    yimity  
       Jun 11, 2014
    ejs 然后把模板引擎的后缀改成 html 嘿嘿,感觉爽歪歪啊。
    tamamaxox
        6
    tamamaxox  
       Jun 11, 2014
    handlebars 应该是最快的吧
    lenzhang
        7
    lenzhang  
       Jun 11, 2014
    nodejs做后台访问量大的时候问题还是蛮多的
    rekey
        8
    rekey  
       Jun 11, 2014
    jade 开启了 cache 以后,3ms 以内绝对可以渲染完。生产环境通过日志分析出来的结果。
    Actrace
        9
    Actrace  
       Jun 11, 2014
    其实nodejs差不多,就是编程思维可能会跟不上,毕竟大多数程序员都是习惯线性编程的.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 15:34 · PVG 23:34 · LAX 08:34 · JFK 11:34
    ♥ Do have faith in what you're doing.