Copy and compile templates