JNTemplate is a .net template engine for generating html, xml, sql, or any other formatted text output.
- faster
- so easy for using
- simpler
- free
Get it on NuGet!
PM> Install-Package JinianNet.JNTemplate
or
> dotnet add package JinianNet.JNTemplate
Building the source
git clone https://github.com/jiniannet/jntemplate.git
Windows:After cloning the repository, run build/build.bat
Linux:After cloning the repository, run build/build.sh
Configuration
You can configure JNTemplate with the EngineConfig class.
Engine.Configure((conf)=>{
// .. configure your instance
});
Basic Example
简单示例
var template = Engine.CreateTemplate("hello $model.Name");
template.Set("model", new User{
Name = "jntemplate"
});
var result = template.Render();
see: www.jiniannet.com
MIT