wycats/handlebars.js — Issue #193: utility to render data through a template
Author: skierpage
Created: 2012-02-26 03:55:19+00:00
State: open

I'm using handlebars to generate static HTML pages in advance, it works well! I started by pasting code into http://tryhandlebarsjs.com/ and copying the HTML source output. I looked at bin/handlebars and figured out that you can run the template() pass in node.js as well as the compilation step. There are hints in how to do it in issue #90 and the code must be buried in the tests in /spec/, but it seems a "run_template" utility would be useful.

In commit 871c00ffd1533854fe73b4128e7eedce8f60f2a6 I added a [bin/run_template in my fork](https://github.com/skierpage/handlebars.js/blob/master/bin/run_template) ; although I'm new to github & node.js it works for me. Comments and forking welcome! (Is there a test framework for the bin/handlebars compiler utility that I can extend?)