TemplateFile constructor
This class represents a file in a generator template.
The contents should be text and may contain mustache
variables that can be substituted ({{myVar}}
).
Implementation
TemplateFile(String path, String content)
: this.fromBytes(path, utf8.encode(content));