Skip to content

Open source templating engine for .net framework/mono/.net core (.net/mono/.net core模板引擎,asp.net模板引擎)

License

Notifications You must be signed in to change notification settings

ithanshui/jntemplate

 
 

Repository files navigation

JNTemplate

Build Status GitHub stars GitHub stars GitHub license GitHub issues

English | 中文

What is JNTemplate?

JNTemplate is a .net template engine for generating html, xml, sql, or any other formatted text output.

Features:

  • faster
  • so easy for using
  • simpler
  • free

Quickstart

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(); 

API

see: www.jiniannet.com

Licenses

MIT

About

Open source templating engine for .net framework/mono/.net core (.net/mono/.net core模板引擎,asp.net模板引擎)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 95.7%
  • CSS 2.0%
  • HTML 1.7%
  • Other 0.6%