Rewriten template loaders