Explanation of [removed] … [removed]

前端 未结 7 972
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 10:05

I just stumbled upon something I\'ve never seen before. In the source of Backbone.js\'s example TODO application (Backbone TODO Example) they had their templates inside a

7条回答
  •  隐瞒了意图╮
    2020-11-22 11:01

    To add to Box9's answer:

    Backbone.js is dependent on underscore.js, which itself implements John Resig's original microtemplates.

    If you decide to use Backbone.js with Rails, be sure to check out the Jammit gem. It provides a very clean way to manage asset packaging for templates. http://documentcloud.github.com/jammit/#jst

    By default Jammit also uses JResig's microtemplates, but it also allows you to replace the templating engine.

提交回复
热议问题