Allow compilation of templates to Javascript functions, wrapped for JST or AMD.