Added condition for markup output from template.