Skip to content

Custom file based templates

Simon Hughes edited this page Jun 26, 2019 · 13 revisions

This is activated if

Settings.TemplateType = TemplateType.FileBased;

You can provide a default template folder for your context by setting:

Settings.TemplateFolder = "C:\\path_to_templates";

If the path is relative to your project, you can use:

Settings.TemplateFolder = Path.Combine(Settings.Root, "Templates");

Settings.Root is set to the full path where your <database.tt> file exists.

Clone this wiki locally