Search code examples
meteoriron-router

Can you load template from string in Meteor's Iron Router


Can you load a template from string in Meteor's Iron Router instead of doing this.render('pageName');?

In other words can you have:

var html = "<div>{{todo}}</div>";
this.render(html);

Thanks!


Solution

  • There is the package numtel:template-from-string which makes Blaze templates with the Spacebars from string.