Fix an async problem by running compile inside the getTemplates callback
Merge pull request #7 from cjthompson/fix_async

Fix an async problem by running compile inside the getTemplates callback