https://razorengine.codeplex.com/
下载并引用:razorengine.dll
代码里这样写,用mvc的人都会!Razor语法!
string template = "Hello @Model.Name! Welcome to Razor!";
string result = Razor.Parse(template, new { Name = "World" });
2023-11-27 09:10:04
https://razorengine.codeplex.com/
下载并引用:razorengine.dll
代码里这样写,用mvc的人都会!Razor语法!
string template = "Hello @Model.Name! Welcome to Razor!";
string result = Razor.Parse(template, new { Name = "World" });