Support for adding markup using templates.