split template and markdown file