Understanding {{.0}} {{.1}} in stache templates
Understanding {{.0}} {{.1}} in stache templates
我正在用stache(胡子的一个版本,模板系统)做一个项目,我遇到了
<a href="{{.0}}" data-set="{{.1}}"></a>
如果我猜的话,我会说这些数字是数组中的索引?但我不确定,我在文档中找不到对它们的引用......
你知道它们是什么吗?
非常感谢帮助...
詹姆斯
很可能是这样的:
https://github.com/mustache/spec/issues/52
这是对 Mustache 规范的扩展,允许将标签名称锚定到当前上下文,基本上将{{.}}
标签与点符号相结合。
相关文章:
- AngularJS Dynamc templates
- Handlebar templates
- Ember.TEMPLATES is empty (ember-cli-htmlbars)
- 升级至Knockout 3.0.0,Templates/Custom Binding Handlers不再工作
- 神秘的行,用于在 Webpack 中需要 html 模板:templates.keys().forEach(templa
- linkify urls in templates-nodejs
- Understanding {{.0}} {{.1}} in stache templates
- 在Angular JS Templates中,在父元素之间交替,同时保持子元素不变
- Jquery templates, escape "${...}"
- Eco-templates:从命令行组合多个模板
- Django民意测验教程第3部分:Polls/templates/Polls/index.html-这段代码是什么?它&
- 检查模板是否已完全加载-Aria Templates
- Laravel 4 and AngularJS Templates
- Rails 3.1 and Javascript templates
- Grunt-angular-templates将模板写入一个单独的文件中
- AngularJS:获取src/app/templates目录中的所有文件名
- JQuery html() and templates
- Node.js, pug templates
- TinyMce templates
- 我们可以在控制器中访问Ember.TEMPLATES吗?