本文介绍了如何更改Handlebars.js的默认分隔符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用handlebars.js,并且还使用Laravel(PHP框架)中的Blade模板引擎。
如何将这些{{var}}更改为<%var%>之类的内容?
解决方案
这对于标准把手是不可能的。
I need to use handlebars.js and I also use Blade template engine from Laravel (PHP Framework). The tags {{}} conflict with blade's placeholders that are exactly the same.
How can I change those {{var}} to something like <% var %> ?
解决方案
This is not possible with "standard" Handlebars. https://github.com/wycats/handlebars.js/issues/227
这篇关于如何更改Handlebars.js的默认分隔符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!