Reading template as resource