[英]What's the difference between Block helper and Partials in Handlebars.js
I have started looking into Handlebars.js but I am not clear on the difference between Block Helper and Partials in Handlebars.js. 我已经开始研究Handlebars.js,但是不清楚Block Helper和Handlebars.js中的Partials之间的区别。
When to use block helper or partials. 何时使用块帮助器或局部函数。
https://github.com/wycats/handlebars.js/ https://github.com/wycats/handlebars.js/
A partial includes one template into another. 部分模板将一个模板包含到另一个模板中。 Block helpers apply logic (IE decisions and loops) around the contained block of code. 块助手在所包含的代码块周围应用逻辑(IE决策和循环)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.