Base for creating templates