在Meteor中动态渲染着名视图

时间:2015-03-01 16:54:17

标签: javascript meteor famo.us meteor-blaze

我在Meteor中使用gadicohen:famous-views包来构建移动应用。我试图在点击event后渲染着名视图。我尝试使用Blaze.renderWithData()。由于此方法修改了DOM元素,因此无效。这是我的模板事件:

 Template.home.events({
    'click div':function(){
        //Render test Template with data context here
    }
});

着名模板:

<template name="test">
    {{#Surface size="[100,100]"}}
         <h1>Dynamically rendered template by meteor event</h1>
    {{/Surface}}
</template>

如何使用DataContext在click事件上动态渲染着名视图?

0 个答案:

没有答案
相关问题