Table of Contents

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

templatePath string
model DocumentModel

Returns

string

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

templateName string
model DocumentModel

Returns

string