formatting of templates