我试图编写一个有时会用作块助手的模板,如下所示:
<template name="helpText">
{{#if isBlockHelper}}
{{> UI.contentBlock}}
{{else}}
Looks like there's nothing to display!
{{/if}}
</template>
有没有办法在流星中做到这一点?
答案 0 :(得分:0)
原来这很简单:
<template name="helpText">
{{#if UI.contentBlock}}
{{> UI.contentBlock}}
{{else}}
Looks like there's nothing to display!
{{/if}}
</template>