V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
flyingkid
V2EX  ›  JavaScript

轻量级模板引擎有什么推荐,要求不高能达到 underscore template 这样就行了,项目依赖 jquery 不依赖 undersco 所以我就不想引入 underscore 了

  •  
  •   flyingkid · 2017 年 3 月 29 日 · 2794 次点击
    这是一个创建于 3231 天前的主题,其中的信息可能已经有所发展或是发生改变。
    10 条回复    2017-03-29 17:19:49 +08:00
    murmur
        1
    murmur  
       2017 年 3 月 29 日
    art template?
    yoa1q7y
        2
    yoa1q7y  
       2017 年 3 月 29 日   ❤️ 1
    Cbdy
        3
    Cbdy  
       2017 年 3 月 29 日
    不知道又没有类似于 thymeleaf 语法的前端渲染引擎
    ClassicOldSong
        4
    ClassicOldSong  
       2017 年 3 月 29 日 via Android
    https://github.com/ClassicOldSong/ef.js
    开发中,自带数据绑定+增量更新的静态模板引擎
    jarlyyn
        5
    jarlyyn  
       2017 年 3 月 29 日
    gowk
        6
    gowk  
       2017 年 3 月 29 日
    推荐 doT.js
    7anshuai
        7
    7anshuai  
       2017 年 3 月 29 日   ❤️ 1
    https://github.com/7anshuai/dollar.template 从 underscore 里扒出来丢到$里了
    lijsh
        8
    lijsh  
       2017 年 3 月 29 日
    underscore 里的模版函数就那么几十行,直接复制就行了。
    LeoEatle
        9
    LeoEatle  
       2017 年 3 月 29 日
    我记得 jquery 好像也有模板渲染啊
    其实最好就直接用 ES6 的模板字符串语法,加个 babel 就好了
    flyingkid
        10
    flyingkid  
    OP
       2017 年 3 月 29 日
    @7anshuai 完美。我要的就是这种。。
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5101 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:15 · PVG 10:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.