Skip to content

Markdown2Pdf.Services.TemplateFiller

GitHub Action edited this page May 25, 2024 · 1 revision

Class TemplateFiller

Namespace: Markdown2Pdf.Services
Assembly: Markdown2Pdf.dll

Simple templating service.

public class TemplateFiller

Inheritance

objectTemplateFiller

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Methods

FillTemplate(string, Dictionary<string, string>)

Replaces all tokens of the form @(key) with the given values in the model.

public static string FillTemplate(string template, Dictionary<string, string> model)

Parameters

template string

The template to replace in.

model Dictionary<string, string>

The model, containg the keys and values.

Returns

string

The filled template.

Clone this wiki locally