I started to develop a meteor webapp. I use meteor with iron routes and a main layout.html file that use yield.
In router.js i have:
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading'
});
Router.route('/login', {name: 'login'});
In layout.html:
<template name="layout">
<div class="container">
{{> header}}
<main id="{{ actualLoadedTemplate }}">
{{> yield}}
</main>
</div>
</template>
I would that the 'main' tag, have the id of the actual loaded template, "login" in this case. Is there a way to accomplish that? Any advice? Thanks
You can define a template helper on your layout :