0

我正在尝试编写一个有时用作块助手的模板,如下所示:

<template name="helpText">
  {{#if isBlockHelper}}
    {{> UI.contentBlock}} 
  {{else}}
    Looks like there's nothing to display!
  {{/if}}
</template>

有没有办法在流星中做到这一点?

4

1 回答 1

0

事实证明这很简单:

<template name="helpText">
  {{#if UI.contentBlock}}
    {{> UI.contentBlock}} 
  {{else}}
    Looks like there's nothing to display!
  {{/if}}
</template>
于 2014-07-31T04:46:19.310 回答