How do I precompile partials for handlebars.js?

后端 未结 7 1243
心在旅途
心在旅途 2021-02-01 03:10

I\'m using handlebars.js and I want to start precompiling everything, but I can\'t seem to find a way to precompile the partials. The majority of my templates are actually parti

相关标签:
7条回答
  • 2021-02-01 04:08

    As mentioned here on GitHub, there has been a -p flag added to the Handlebars CLI.

    So you can use handlebars my_partial.handlebars -p -f output.js

    0 讨论(0)
提交回复
热议问题