Click or drag to resize
CompiledView Class
This class is used by HandlebarsView when rendering.
Inheritance Hierarchy
SystemObject
  HandlebarsDotNet.MvcCompiledView

Namespace: HandlebarsDotNet.Mvc
Assembly: HandlebarsDotNet.Mvc (in HandlebarsDotNet.Mvc.dll) Version: 1.0.0-beta
Syntax
public class CompiledView

The CompiledView type exposes the following members.

Constructors
  NameDescription
Public methodCompiledView
Initializes a new instance of the CompiledView class
Top
Properties
  NameDescription
Public propertyFileHash
The hash as returned from the VirtualPathProvider. This is if the VirtualPathProvider supports CacheDependency for the file.
Public propertyFunc
The compiled function.
Public propertyLayout
The layout specified in the file. Null or the empty string if not specified in it. Not used when rendering.
Top
Remarks
This is what is stored in the application cache by HandlebarsViewEngine. When the view engine adds this to the cache it has knowledge of paths searched, the virtual path to the source file, etc. That info is used for the cachekey and creating the CacheDependency.
Note Note
You are not supposed to add to the cache yourself, that is handled by this view engine.
However, if you need to call HandlebarsView.Render() yourself you need to be able to create instances of this class which is why this class is public.
See Also