Click or drag to resize

IRazorEngine Interface

Defines an interface for RazorEngineTLanguage implementations.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public interface IRazorEngine : IRazorEngineService, 
	IDisposable
View Source

The IRazorEngine type exposes the following members.

Properties
 NameDescription
Public propertyTemplatePath Gets the template path defined for this IRazorEngine.
Top
Methods
 NameDescription
Public methodAddTemplate Adds a given template to the template manager as dynamic template.
(Inherited from IRazorEngineService)
Public methodCompile Compiles the specified template and caches it.
(Inherited from IRazorEngineService)
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodGetKey Gets a given key from the ITemplateManager implementation. See GetKey(String, ResolveType, ITemplateKey).
(Inherited from IRazorEngineService)
Public methodIsTemplateCached Checks if a given template is already cached.
(Inherited from IRazorEngineService)
Public methodPreCompile Kicks off a task to pre-compile Razor templates.
Public methodRun Runs the given cached template.
(Inherited from IRazorEngineService)
Public methodRunCompile Runs the given cached template. When the cache does not contain the template it will be compiled and cached beforehand.
(Inherited from IRazorEngineService)
Top
See Also