precompile to native template