 | HandlebarsView Constructor |
Initializes a new instance of the HandlebarsView class using the controller context and compiled view and layouts.
Namespace: HandlebarsDotNet.MvcAssembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntaxpublic HandlebarsView(
ControllerContext controllerContext,
CompiledView view,
CompiledView[] layouts
)
Public Sub New (
controllerContext As ControllerContext,
view As CompiledView,
layouts As CompiledView()
)
public:
HandlebarsView(
ControllerContext^ controllerContext,
CompiledView^ view,
array<CompiledView^>^ layouts
)
new :
controllerContext : ControllerContext *
view : CompiledView *
layouts : CompiledView[] -> HandlebarsView
Parameters
- controllerContext
- Type: ControllerContext
The controller context. - view
- Type: HandlebarsDotNet.MvcCompiledView
The compiled view. - layouts
- Type: HandlebarsDotNet.MvcCompiledView
The compiled layout(s) that will surround the output from the view. This can be .
See Also