新增jnt模板引擎

This commit is contained in:
不做码农
2021-11-29 21:54:01 +08:00
parent 7eadff782e
commit 6772266b95
7 changed files with 95 additions and 53 deletions

View File

@@ -1,6 +1,7 @@
using Hei.Captcha;
using Infrastructure;
using Infrastructure.Extensions;
using JinianNet.JNTemplate;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.DataProtection;
@@ -84,6 +85,14 @@ namespace ZR.Admin.WebApi
c.IncludeXmlComments("ZRAdmin.xml", true);
}
});
//jntģ<74><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȫ<EFBFBD>ֱ<EFBFBD><D6B1><EFBFBD>
Engine.Configure((options) =>
{
options.Data.Set("author", Configuration["gen:author"]);
options.Data.Set("time", DateTime.Now.ToString("yyyy-MM-dd"));
//...<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.