开发者

Create any file with Razor

Can I create not .cshtml file (.txt, .js ...), inclu开发者_开发百科de Razor operators in it and parse in runtime using Razor engine (in web or desktop .NET application)?


Yes you can, just take a look at the RazorEngine on codeplex. Razor is just a templating engine that could be used in any application including console, desktop, ... and it is not tightly coupled coupled to an HttpContext like the WebForms pseudo view engine.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜