How to load multiple templates in Meteor JS ? I know how to load a single template dynamically. But not getting to load multiple Templates.Please see the below code of loading single template & suggest me what to do for Load Multiple Templates?
JS Code :
Meteor.startup(function ()
{
Session.set('currentTemplate', 'login');
});
Template.content.helpers
({
'renderTemplate': function()
{
if(Session.get('currentTemplate') == undefined)
{
Session.set('currentTemplate', 'login');
}
return new Handlebars.SafeString(Template[Session.get('currentTemplate')]({dataKey: '0'}));
}
})