justjohn/twig.js — pull request #97 by mdance (2013-05-21 17:06:48+00:00)
Title: Fixed twigjs amd module compiler

I have a build script to compile some twig templates:

#!/usr/bin/env bash
../../libs/twig/bin/twigjs \
--output compiled \
--module amd \
--twig twig \
.

The compiled files were failing with a undefined variable templates exception which this commit hopefully resolves.