Templates 如何动态更改Meteor模板?
有没有一种方法可以使用helper变量动态更改Meteor模板 例如: templateChanger.htmlTemplates 如何动态更改Meteor模板?,templates,meteor,spacebars,Templates,Meteor,Spacebars,有没有一种方法可以使用helper变量动态更改Meteor模板 例如: templateChanger.html <template name="templateChanger"> {{> iWantToChangeThis}} </template> 预期结果: {{>someTemplate}}已加载 <template name="templateChanger"> {{> Template.dynamic template
<template name="templateChanger">
{{> iWantToChangeThis}}
</template>
预期结果:
{{>someTemplate}}已加载
<template name="templateChanger">
{{> Template.dynamic template=iWantToChangeThis}}
</template>
{{>Template.dynamic Template=iWantToChangeThis}
<template name="templateChanger">
{{> Template.dynamic template=iWantToChangeThis}}
</template>