Click or drag to resize
HandlebarsViewEngine Properties

The HandlebarsViewEngine type exposes the following members.

Properties
  NameDescription
Public propertyCacheKeyPrefix
The prefix to use when creating the cache keys.
Public propertyHandlebarsConfiguration
A copy of this will be used when compiling the views. This is the place to provide site-wide helpers, block-helpers and templates.
Public propertyLogger
The logger used. The default is a NullLogger instance.
Public propertyPathsProvider
The paths provider used. The default is DefaultPathsProvider that mostly mimics the view files placements in the built-in MVC framework.
Public propertyViewExtension
The file extension the view files and partials must have in order for this ViewEngine to handle it. Default: ".hbs"
Public propertyViewsSlidingCacheTime
The length of time that compiled views are cached after last access. Set this to to disable caching. Default is 5 minutes.
Protected propertyVirtualPathProvider
The VirtualPathProvider to use. This is only to facilitate unit testing! The default is the registered VirtualPathProvider.
Top
See Also