![]() |
VOOZH | about |
dotnet add package JinianNet.JNTemplate --version 2.4.4
NuGet\Install-Package JinianNet.JNTemplate -Version 2.4.4
<PackageReference Include="JinianNet.JNTemplate" Version="2.4.4" />
<PackageVersion Include="JinianNet.JNTemplate" Version="2.4.4" />Directory.Packages.props
<PackageReference Include="JinianNet.JNTemplate" />Project file
paket add JinianNet.JNTemplate --version 2.4.4
#r "nuget: JinianNet.JNTemplate, 2.4.4"
#:package JinianNet.JNTemplate@2.4.4
#addin nuget:?package=JinianNet.JNTemplate&version=2.4.4Install as a Cake Addin
#tool nuget:?package=JinianNet.JNTemplate&version=2.4.4Install as a Cake Tool
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.
dotnet add package JinianNet.JNTemplate
using JinianNet.JNTemplate;
chsare code:
var text = @"Hello, ${name}";
var template = Engine.CreateTemplate(text);
template.Set("name","jntemplate");
var result = template.Render();
Console.WriteLine(result);
output:
Hello, jntemplate
var text = @"
<ul>
${foreach(name in list)}
<li>${name}</li>
${end}
</ul>
";
var template = Engine.CreateTemplate(text);
template.Set("list", new string[] { "github","jntemplate" });
var result = template.Render();
Console.WriteLine(result);
output:
<ul>
<li>github</li>
<li>jntemplate</li>
</ul>
var text = "$test.SayHello(\"jntemplate\")";
var template = Engine.CreateTemplate(text);
template.Set("test", new TestHelper());
var result = template.Render();
Console.WriteLine(result);
public class TestHelper
{
public string SayHello(string name)
{
return "hello " + name;
}
}
output:
hello jntemplate
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net20 net20 is compatible. net35 net35 is compatible. net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 is compatible. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 is compatible. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on JinianNet.JNTemplate:
| Package | Downloads |
|---|---|
|
JGDZ.QuickDevelopment
极光电子 - 快速开发框架 |
|
|
GMS_CodeGenerator
GMS通用包 |
|
|
NFinal.View.JNTemplate
JNTemplate template for dependency injection service |
|
|
JinianNet.AspNetCoreViewEngine.Jntemplate
An Jntemplate view engine for ASP.NET Core MVC. |
|
|
Nexperia.CodeGenerator
Package Description |
Showing the top 3 popular GitHub repositories that depend on JinianNet.JNTemplate:
| Repository | Stars |
|---|---|
|
izhaorui/Zr.Admin.NET
🎉ZR.Admin.NET是一款前后端分离的、跨平台基于RBAC的通用权限管理后台。ORM采用SqlSugar。前端采用Vue、AntDesign,支持多租户、缓存、任务调度、支持统一异常处理、接口限流、支持一键生成前后端代码,支持动态国际化翻译(Vue3),等诸多黑科技,代码简洁易懂、易扩展让开发更简单、更通用。
|
|
|
TeslaFly01/SmartSqlT
🔥🔥🔥 SmartSQL 是一款方便、快捷的数据库文档查询、导出工具!该工具从最初支持CHM文档格式开始,通过不断地探索开发、集思广益和不断改进,又陆续支持Word、Excel、PDF、Html、Xml、Json、MarkDown等文档格式的导出。同时支持SqlServer、MySql、PostgreSQL、SQLite等多种数据库的文档查询和导出功能。
|
|
|
weibaohui/blazork8s
manage k8s using c# blazor enhance by chatgpt ,try something new !使用blazor技术开发的内置OpenAI GPT的k8s 管理界面
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.4 | 8,877 | 11/21/2025 |
| 2.4.3 | 7,040 | 5/21/2025 |
| 2.4.2 | 54,971 | 12/5/2023 |
| 2.4.1 | 8,585 | 10/22/2023 |
| 2.3.3 | 26,246 | 1/29/2023 |
| 2.3.2 | 13,034 | 11/4/2022 |
| 2.3.1 | 8,424 | 9/13/2022 |
| 2.3.0 | 18,602 | 5/9/2022 |
| 2.2.5 | 9,322 | 11/30/2021 |
| 2.2.4 | 3,415 | 11/27/2021 |
| 2.2.2 | 4,378 | 7/26/2021 |
| 2.2.0 | 1,949 | 6/8/2021 |
| 2.1.2 | 718 | 5/19/2021 |
| 2.1.1 | 1,137 | 4/10/2021 |
| 1.4.2 | 602 | 12/10/2021 |
| 1.4.1 | 602 | 10/27/2021 |