Express 是否将助手的结果传递给另一个助手?
有没有一种方法可以在把手的助手中调用助手?我想这样做:Express 是否将助手的结果传递给另一个助手?,express,handlebars.js,Express,Handlebars.js,有没有一种方法可以在把手的助手中调用助手?我想这样做: {{#each myCustomHelper}} <li>{{this}}</li> {{/each}} {{#每个myCustomHelper} {{this}} {{/每个}} 其中调用myCustomHelper返回一个字符串数组 我正在尝试使用快速手柄从节点执行此操作,我不想在每个res.render上传递字符串数组。 我希望避免从myCustomHelper输出html。 上述情况是否可能 谢谢 找到了
{{#each myCustomHelper}}
<li>{{this}}</li>
{{/each}}
{{#每个myCustomHelper}
{{this}}
{{/每个}}
其中调用myCustomHelper返回一个字符串数组
我正在尝试使用快速手柄从节点执行此操作,我不想在每个res.render上传递字符串数组。
我希望避免从myCustomHelper输出html。
上述情况是否可能
谢谢 找到了答案。至少在我的情况下,语法是:
{{#each (myCustomHelper)}}
<li>{{this}}</li>
{{/each}}
{{#each(myCustomHelper)}
{{this}}
{{/每个}}
必须深入研究这一点才能找到正确的语法并找到答案。至少在我的情况下,语法是:
{{#each (myCustomHelper)}}
<li>{{this}}</li>
{{/each}}
{{#each(myCustomHelper)}
{{this}}
{{/每个}}
必须深入研究这一点才能找到正确的语法并找到答案。至少在我的情况下,语法是:
{{#each (myCustomHelper)}}
<li>{{this}}</li>
{{/each}}
{{#each(myCustomHelper)}
{{this}}
{{/每个}}
必须深入研究这一点才能找到正确的语法并找到答案。至少在我的情况下,语法是:
{{#each (myCustomHelper)}}
<li>{{this}}</li>
{{/each}}
{{#each(myCustomHelper)}
{{this}}
{{/每个}}
为了找到正确的语法,我们必须深入研究这个问题