Allow definition of a layout and a template