Basic framework for resource templates