twitter/hogan.js — Issue #47: hulk output.
Author: pthrasher
Created: 2012-02-14 03:40:58+00:00
State: open

With a directory structure like:

project /
|
+--static /
|
+--templates /
| |
| +--title.mustache
|
+--js /
|
+--templates.js

When running:

hulk static/templates/*.mustache > static/js/templates.js

the output names the template `templates.static/templates/title` which is illegal in JS. This is due to not getting the basename of the file first, or perhaps slugifying the path in some predictable and safe way.

The short term fix is to run:

cd static/mustache && hulk *.mustache > ../js/templates.js