midreport: added Templating as a phase