Quick Start

create template from file

Example

default.html

<p>hello,$name</p>

c# code

var template = Engine.LoadTemplate("c:\\default.html");
template.Set("name","jntemplate");
var result = template.Render();

output:

<p>hello,jntemplate</p>

create template from text

var template = Engine.CreateTemplate("<p>hello,$name</p>");
template.Set("name","jntemplate");
var result = template.Render();

output:

<p>hello,jntemplate</p>
Last Updated:
Contributors: 翅膀的初衷