templateHandler now caching compiled templates