Make TemplateResource public (to make it reusable from other frameworks)