# jntemplate **Repository Path**: jiniannet/jntemplate ## Basic Information - **Project Name**: jntemplate - **Description**: C#开发的高速.NET模板引擎 - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: http://www.jiniannet.com - **GVP Project**: No ## Statistics - **Stars**: 236 - **Forks**: 53 - **Created**: 2014-08-14 - **Last Updated**: 2026-03-13 ## Categories & Tags **Categories**: template-engine **Tags**: 模板引擎, 文本引擎, HTML引擎, 视图引擎 ## README # JNTemplate [](https://ci.appveyor.com/project/jiniannet/jntemplate) [](https://www.nuget.org/packages/JinianNet.JNTemplate/) [](https://github.com/jiniannet/jntemplate/stargazers) [](https://raw.githubusercontent.com/jiniannet/jntemplate/master/License.txt) [](https://github.com/jiniannet/jntemplate/issues) [English](https://github.com/jiniannet/jntemplate/blob/master/README.md) | [中文](https://github.com/jiniannet/jntemplate/blob/master/README-zh-CN.md) ### What is JNTemplate? JNTemplate is fast, lightweight, extensible .net template engine for generating html, xml, sql, or any other formatted text output. Special placeholders in the template allow writing code similar to c# syntax. Then the template is passed data to render the final document. ### Installation Install and update using NuGet: ``` PM> Install-Package JinianNet.JNTemplate ``` or ``` > dotnet add package JinianNet.JNTemplate ``` ### Quickstart **Basics** Rendering a basic html template with a predefined data model. c# code ```csharp var template = Engine.LoadTemplate(@"c:\wwwroot\view\index.html"); ; template.Set("name", "jntemplate"); var result = template.Render(); ``` index.html ```html