简体   繁体   中英

Using external mustache partials in a brunch.io project

I am working on a project that uses brunch.io and mustache for templating. I want to add mustache partials to the main index (which serves as a 'shell') to load in my content. I create the mustache partials in their own .mustache file and then add the tag on the index page (ie: {{> somePartial}} ) but what I seem to be missing is how to get the partial to render... Thats what I need help with.

我在早午餐应用程序中使用Mustache的Handlebars.js实现,它非常简单:只需通过Handlebars.registerPartial()部分注册。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM