cssmagic / underscore-template

More APIs for Underscore's template engine.
10 stars 3 forks source link

`_isTemplateCode()` 函数限制了模板标记的格式 #11

Closed cssmagic closed 8 years ago

cssmagic commented 9 years ago

_isTemplateCode() 函数会去找 <%%> 并以此判定模板代码是否合法,这实际上限制了用户对于模板标记风格的选择。比如 {{var}} 就不被支持。