C# Class Masonry.Core.Hosting.EmbeddedViewGenerator

Adds default usings, sets an inherits clause and specifies the layout name
Modifies embedded views so that they works like any other views. This includes the following Include a @model directive if missing Add a @inherits directive Add any missing @using statements (MVC and ASP.NET dependencies)
Inheritance: IViewGenerator
Mostra file Open project: DenisVuyka/Masonry

Public Methods

Method Description
EmbeddedViewGenerator ( ) : System.IO

Initializes a new instance of the EmbeddedViewGenerator class.

GenerateView ( string virtualPath, Stream stream ) : Stream

Modify the view

Method Details

EmbeddedViewGenerator() public method

Initializes a new instance of the EmbeddedViewGenerator class.
public EmbeddedViewGenerator ( ) : System.IO
return System.IO

GenerateView() public method

Modify the view
public GenerateView ( string virtualPath, Stream stream ) : Stream
virtualPath string Path to view
stream System.IO.Stream Stream containing the original view
return System.IO.Stream