Add support for creating templates