Add documentation for working with templates.