Precompile templates to commonjs modules