Templates and entities