Support inlining templates

This makes it possible to compile templates from JavaScript files, like this: