Class TemplateRenderer
- Namespace
- Cress.LivingDocs
- Assembly
- Cress.LivingDocs.dll
Renders a Scriban template (from disk or embedded resource) against a DocumentModel.
public sealed class TemplateRenderer
- Inheritance
-
TemplateRenderer
- Inherited Members
Methods
Render(string, DocumentModel)
Render an on-disk template file.
public string Render(string templatePath, DocumentModel model)
Parameters
templatePathstringmodelDocumentModel
Returns
RenderEmbedded(string, DocumentModel)
Render one of the three built-in embedded templates by short name:
executive, technical, or public.
public string RenderEmbedded(string templateName, DocumentModel model)
Parameters
templateNamestringmodelDocumentModel