remove YAML text from template before processing