 | HandlebarsViewEngineCreateView Method |
Creates an
IView instance that is ready to be rendered.
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxprotected virtual IView CreateView(
ControllerContext controllerContext,
CompiledView compiledView,
CompiledView[] layouts
)
Protected Overridable Function CreateView (
controllerContext As ControllerContext,
compiledView As CompiledView,
layouts As CompiledView()
) As IView
protected:
virtual IView^ CreateView(
ControllerContext^ controllerContext,
CompiledView^ compiledView,
array<CompiledView^>^ layouts
)
abstract CreateView :
controllerContext : ControllerContext *
compiledView : CompiledView *
layouts : CompiledView[] -> IView
override CreateView :
controllerContext : ControllerContext *
compiledView : CompiledView *
layouts : CompiledView[] -> IView
Parameters
- controllerContext
- Type: ControllerContext
The controller context. - compiledView
- Type: HandlebarsDotNet.MvcCompiledView
The compiled view. The compiledView.Layout property is not used. - layouts
- Type: HandlebarsDotNet.MvcCompiledView
The compiled layouts that will surround the view.
Return Value
Type:
IViewAn
IView instance.
Remarks
The default implementation simply creates a
HandlebarsView using the arguments provided.
See Also