templates: add some structure.