| HandlebarsViewEngine Class |
Namespace: HandlebarsDotNet.Mvc
The HandlebarsViewEngine type exposes the following members.
| Name | Description | |
|---|---|---|
| HandlebarsViewEngine |
Initializes a new instance of the HandlebarsViewEngine class with DefaultPathsProvider as its path provider.
| |
| HandlebarsViewEngine(IPathsProvider) |
Initializes a new instance of the HandlebarsViewEngine class.
|
| Name | Description | |
|---|---|---|
| ClearCache |
Clears the cache used by HandlebarsViewEngine.
| |
| CreateView |
Creates an IView instance that is ready to be rendered.
| |
| ExtractActionName |
Gets the action name from the controller context.
| |
| ExtractAreaName |
Gets the area name from the controller context.
| |
| ExtractControllerName |
Gets the controller name from the controller context.
| |
| FileExists |
Checks for file existence.
| |
| FindPartialView |
Finds the specified partial view by using the specified controller context.
| |
| FindView |
Finds the specified view by using the specified controller context.
| |
| GetCacheKey |
Gets the cachekey for the specified path.
| |
| RegisterHelper(String, HandlebarsBlockHelper) |
Registers a block helper in this view engine's global configuration.
| |
| RegisterHelper(String, HandlebarsHelper) |
Registers a helper in this view engine's global configuration.
| |
| RegisterMvcHelpers |
Registers the builtin helpers that act a lot like their Razor/WebForms counterpart site-wide in the HandlebarsConfiguration.
| |
| RegisterSectionsHelpers |
Registers the builtin helpers that act a lot like their Razor counterpart site-wide in the HandlebarsConfiguration.
| |
| RegisterTemplate |
Registers a template in this view engine's global configuration.
| |
| ReleaseView |
Releases the specified view by using the specified controller context.
|
| Name | Description | |
|---|---|---|
| CacheKeyPrefix |
The prefix to use when creating the cache keys.
| |
| HandlebarsConfiguration |
A copy of this will be used when compiling the views.
This is the place to provide site-wide helpers, block-helpers and templates.
| |
| Logger |
The logger used. The default is a NullLogger instance.
| |
| PathsProvider |
The paths provider used. The default is DefaultPathsProvider that mostly mimics the view files placements in the built-in MVC framework.
| |
| ViewExtension | The file extension the view files and partials must have in order for this ViewEngine to handle it. Default: ".hbs" | |
| ViewsSlidingCacheTime | The length of time that compiled views are cached after last access. Set this to to disable caching. Default is 5 minutes. | |
| VirtualPathProvider |
The VirtualPathProvider to use. This is only to facilitate unit testing! The default is the registered VirtualPathProvider.
|