摘要: Razor引擎下载地址:http://github.com/Antaris/RazorEngine解析Model: string template = "Hello @Model.Name! Welcome to Razor!"; string result = Razor.Parse(template, new { Name = "World" });使用Helper:string template = @"@helper MyMethod(string name) { Hello @name } @MyMethod(Model.Name)! 阅读全文
posted @ 2013-07-09 20:22 自由_ 阅读(1137) 评论(0) 推荐(1) 编辑