Convert input files to templates.