Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhanglei13
authored and
zhanglei13
committed
May 20, 2016
1 parent
83d146f
commit 1c4fb55
Showing
5 changed files
with
71 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Razor; | ||
using YOYO.Mvc; | ||
|
||
namespace YOYO.AspNetCore.ViewEngine.Razor | ||
{ | ||
// This project can output the Class library as a NuGet Package. | ||
// To enable this option, right-click on the project and select the Properties menu item. In the Build tab select "Produce outputs on build". | ||
public class RazorViewEngine : IViewEngine | ||
{ | ||
public RazorViewEngine() | ||
{ | ||
|
||
|
||
var host = new RazorEngineHost(new CSharpRazorCodeLanguage()); | ||
|
||
// Act | ||
var engine = new RazorTemplateEngine(host); | ||
|
||
|
||
|
||
} | ||
|
||
|
||
~RazorViewEngine() | ||
{ | ||
//.Dispose(); | ||
} | ||
|
||
public string ExtensionName | ||
{ | ||
get | ||
{ | ||
return ".cshtml"; | ||
} | ||
} | ||
|
||
public string RenderView(YOYO.Owin.IOwinContext context, string viewName, object model, DynamicDictionary viewbag) | ||
{ | ||
|
||
|
||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters