digiwano/auton — pull request #3 by JerrySievert (2012-03-11 17:56:46+00:00)
Title: handlebars and options

Added handlebars compilation support, as well as the ability to pass in an options object. Currently, if options.templates exists, handlebars will use that as the template variable name when building. This is very basic, and may make more sense passing in a JavaScript code snippet instead in the future.

var compiler = new Compiler('build', 'htdocs', true, { templates: "Templates" });

compiler.addRule( /\.handlebars$/, saveJs, rules.handlebars );