Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
JNTemplate is a fast, lightweight, extensible .NET template engine for generating HTML, XML, SQL, or any other formatted text output.
JNTemplate is a fast, lightweight, extensible .NET template engine that renders HTML, XML, SQL, or any other text format from templates and data. It runs on the .NET platform and is developed by jiniannet, an open-source organization, with source on GitHub and distribution through NuGet.
JNTemplate is an open-source template engine for .NET that takes a template file or string with special placeholders and a data model, and produces formatted text output. It is designed for speed and a small footprint, and its syntax resembles C#. The project is MIT-licensed and available as the JinianNet.JNTemplate NuGet package.
${name} (an inline-code placeholder) and control flow like foreach loops directly in templates.template.Set("name", value) and render with Render().Engine.Configure accepts an options object (using the IOptions pattern) to adjust behavior.PM> Install-Package JinianNet.JNTemplate) or dotnet add package JinianNet.JNTemplate.foreach loops over arrays or collections.The quickstart shows a three-step process: call Engine.LoadTemplate with a file path, set data with template.Set, then call template.Render() to obtain the output string. The engine parses placeholders and loop constructs during rendering, and configuration is handled through Engine.Configure with an options object.
JNTemplate is open source and released under the MIT license, so it is free to use in commercial and personal projects without licensing fees.
Yes, it is released under the MIT license, which allows free commercial and personal use with no cost.
Install it via NuGet using PM> Install-Package JinianNet.JNTemplate in the Package Manager Console or dotnet add package JinianNet.JNTemplate on the command line.
The documentation states it can generate HTML, XML, SQL, or any other formatted text output. The rendering result is a string that you can write to a file, stream, or response.
It uses C#-like syntax with placeholders like ${name} and loops such as ${foreach(name in list)} ... ${end}. Data is bound via template.Set("key", value).
The official documentation is at https://docs-en.jiniannet.com, and the source code is on GitHub at https://github.com/jiniannet/jntemplate.
