Closed cmather closed 10 years ago
Yeah, this is what we used to build stand-alone Blaze (meteor.github.io/blaze/). Your approach should probably work fine, but take into account that the HTML passed into spacebars-compiler must be valid HTML. We actually use this approach to generate boilerplate HTML: https://github.com/meteor/meteor/blob/devel/packages/boilerplate-generator/boilerplate-generator.js#L24
Use case: Update the npm
em
command line tool to use Spacebars/Blaze for the templates instead of ejs.Reqs:
Code: https://github.com/EventedMind/em/blob/devel/lib/generator.js#L46