flow-router

meteor with flow router layout is rendered twice

余生颓废 提交于 2019-12-10 18:54:02
问题 I don't know why but my layout is rendered two times. Here is my index.html: <head> <title>title</title> </head> <body> {{>layout}} </body> Here is my layout: <template name="layout"> {{#if canShow}} {{>Template.dynamic template=content}} {{else}} {{> loginButtons}} {{/if}} </template> So here without route my template is display just one time. Here is my route: FlowRouter.route('/', { action() { BlazeLayout.render("layout", { content: "home" }); } }); But with this route my template is