Compile templates into templatecache