Precompile templates to modules