JinianNet.JNTemplate
2.4.3
dotnet add package JinianNet.JNTemplate --version 2.4.3
NuGet\Install-Package JinianNet.JNTemplate -Version 2.4.3
<PackageReference Include="JinianNet.JNTemplate" Version="2.4.3" />
<PackageVersion Include="JinianNet.JNTemplate" Version="2.4.3" />
<PackageReference Include="JinianNet.JNTemplate" />
paket add JinianNet.JNTemplate --version 2.4.3
#r "nuget: JinianNet.JNTemplate, 2.4.3"
#addin nuget:?package=JinianNet.JNTemplate&version=2.4.3
#tool nuget:?package=JinianNet.JNTemplate&version=2.4.3
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.
How to use
Install
dotnet add package JinianNet.JNTemplate
Import
using JinianNet.JNTemplate;
var
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
Iteration
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>
Function
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
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net20 is compatible. net35 is compatible. net40 is compatible. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 2.0
- No dependencies.
-
.NETFramework 3.5
- No dependencies.
-
.NETFramework 4.0
- No dependencies.
-
.NETFramework 4.6
- No dependencies.
-
.NETFramework 4.8
- No dependencies.
-
.NETStandard 2.0
- System.Reflection.Emit (>= 4.7.0)
- System.Reflection.Emit.Lightweight (>= 4.7.0)
-
.NETStandard 2.1
- No dependencies.
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (7)
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 |
GitHub repositories (3)
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.3 | 556 | 5/21/2025 |
2.4.2 | 40,254 | 12/5/2023 |
2.4.1 | 7,265 | 10/22/2023 |
2.3.3 | 22,747 | 1/29/2023 |
2.3.2 | 11,645 | 11/4/2022 |
2.3.1 | 7,779 | 9/13/2022 |
2.3.0 | 17,851 | 5/9/2022 |
2.2.5 | 7,425 | 11/30/2021 |
2.2.4 | 3,215 | 11/27/2021 |
2.2.2 | 3,815 | 7/26/2021 |
2.2.0 | 1,699 | 6/8/2021 |
2.1.2 | 569 | 5/19/2021 |
2.1.1 | 935 | 4/10/2021 |
2.0.1 | 563 | 3/17/2021 |
2.0.0 | 869 | 2/4/2021 |
1.4.2 | 461 | 12/10/2021 |
1.4.1 | 443 | 10/27/2021 |
1.4.0 | 617 | 1/17/2021 |
1.3.3 | 2,433 | 4/24/2018 |
1.3.2 | 3,443 | 9/13/2017 |
1.3.1 | 2,051 | 4/12/2016 |
1.3.0 | 1,635 | 10/16/2015 |
1.2.2.17 | 1,321 | 9/17/2015 |
1.2.2.4 | 1,381 | 5/28/2015 |
1.2.2 | 1,773 | 12/23/2014 |
1.2.1 | 1,517 | 8/14/2014 |
1.2.0.5 | 1,277 | 8/1/2014 |
1.2.0.2 | 1,362 | 7/29/2014 |
1.2.0.1 | 1,314 | 7/28/2014 |
1.2.0 | 1,399 | 7/24/2014 |