Parse a template string
Parse a template with file