Razor
Defined in RazorEngine.dll.
Provides quick access to template functions.
Static members
Static member | Description |
Compile(razorTemplate, cacheName)
Signature: (razorTemplate:string * cacheName:string) -> unit
|
Compiles the specified template. |
Compile(...)
Signature: (razorTemplate:string * modelType:Type * cacheName:string) -> unit
|
Compiles the specified template. |
Compile(razorTemplate, cacheName)
Signature: (razorTemplate:string * cacheName:string) -> unit
Type parameters: 'T |
Compiles the specified template. |
CreateTemplate(razorTemplate)
Signature: razorTemplate:string -> ITemplate
|
Creates an instance of ITemplate from the specified string template. |
CreateTemplate(razorTemplate, model)
Signature: (razorTemplate:string * model:'T) -> ITemplate
Type parameters: 'T |
Creates an instance of ITemplate`1 from the specified string template. |
CreateTemplates(...)
Signature: (razorTemplates:IEnumerable<string> * parallel:bool) -> IEnumerable<ITemplate>
|
|
CreateTemplates(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<'T> * parallel:bool) -> IEnumerable<ITemplate>
Type parameters: 'T |
|
CreateTemplateType(razorTemplate)
Signature: razorTemplate:string -> Type
|
Creates a Type that can be used to instantiate an instance of a template. |
CreateTemplateType(...)
Signature: (razorTemplate:string * modelType:Type) -> Type
|
Creates a Type that can be used to instantiate an instance of a template. |
CreateTemplateTypes(...)
Signature: (razorTemplates:IEnumerable<string> * parallel:bool) -> IEnumerable<Type>
|
|
CreateTemplateTypes(...)
Signature: (razorTemplates:IEnumerable<string> * modelType:Type * parallel:bool) -> IEnumerable<Type>
|
|
GetTemplate(razorTemplate, cacheName)
Signature: (razorTemplate:string * cacheName:string) -> ITemplate
|
Gets an instance of the template using the cached compiled type, or compiles the template type if it does not exist in the cache. |
GetTemplate(...)
Signature: (razorTemplate:string * model:'T * cacheName:string) -> ITemplate
Type parameters: 'T |
Gets an instance of the template using the cached compiled type, or compiles the template type if it does not exist in the cache. |
GetTemplates(...)
Signature: (razorTemplates:IEnumerable<string> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<ITemplate>
|
|
GetTemplates(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<'T> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<ITemplate>
Type parameters: 'T |
|
Parse(razorTemplate)
Signature: razorTemplate:string -> string
|
Parses and returns the result of the specified string template. |
Parse(razorTemplate, cacheName)
Signature: (razorTemplate:string * cacheName:string) -> string
|
Parses and returns the result of the specified string template. This method will provide a cache check to see if the compiled template type already exists and is valid. |
Parse(razorTemplate, model)
Signature: (razorTemplate:string * model:obj) -> string
|
Parses and returns the result of the specified string template. |
Parse(razorTemplate, model)
Signature: (razorTemplate:string * model:'T) -> string
Type parameters: 'T |
Parses and returns the result of the specified string template. |
Parse(razorTemplate, model, cacheName)
Signature: (razorTemplate:string * model:'T * cacheName:string) -> string
Type parameters: 'T |
Parses and returns the result of the specified string template. |
Parse(...)
Signature: (razorTemplate:string * model:'T * viewBag:DynamicViewBag * cacheName:string) -> string
Type parameters: 'T |
Parses and returns the result of the specified string template. |
Parse(razorTemplate, model, cacheName)
Signature: (razorTemplate:string * model:obj * cacheName:string) -> string
|
Parses and returns the result of the specified string template. |
Parse(...)
Signature: (razorTemplate:string * model:obj * viewBag:DynamicViewBag * cacheName:string) -> string
|
Parses and returns the result of the specified string template. |
ParseMany(...)
Signature: (razorTemplate:string * models:IEnumerable<obj> * parallel:bool) -> IEnumerable<string>
|
|
ParseMany(razorTemplates, parallel)
Signature: (razorTemplates:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
|
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<obj> * parallel:bool) -> IEnumerable<string>
|
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
|
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<obj> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
|
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<obj> * viewBags:IEnumerable<DynamicViewBag> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
|
|
ParseMany(...)
Signature: (razorTemplate:string * models:IEnumerable<'T> * parallel:bool) -> IEnumerable<string>
Type parameters: 'T |
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<'T> * parallel:bool) -> IEnumerable<string>
Type parameters: 'T |
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<'T> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
Type parameters: 'T |
|
ParseMany(...)
Signature: (razorTemplates:IEnumerable<string> * models:IEnumerable<'T> * viewBags:IEnumerable<DynamicViewBag> * cacheNames:IEnumerable<string> * parallel:bool) -> IEnumerable<string>
Type parameters: 'T |
|
Resolve(cacheName)
Signature: cacheName:string -> ITemplate
|
Resolves the template with the specified name. |
Resolve(cacheName, model)
Signature: (cacheName:string * model:obj) -> ITemplate
|
Resolves the template with the specified name. |
Resolve(cacheName, model)
Signature: (cacheName:string * model:'T) -> ITemplate
Type parameters: 'T |
Resolves the template with the specified name. |
Run(cacheName)
Signature: cacheName:string -> string
|
Runs the template with the specified name. |
Run(cacheName, model)
Signature: (cacheName:string * model:obj) -> string
|
Runs the template with the specified name. |
Run(cacheName, model, viewBag)
Signature: (cacheName:string * model:obj * viewBag:DynamicViewBag) -> string
|
Runs the template with the specified name. |
Run(cacheName, model)
Signature: (cacheName:string * model:'T) -> string
Type parameters: 'T |
Runs the template with the specified name. |
Run(cacheName, model, viewBag)
Signature: (cacheName:string * model:'T * viewBag:DynamicViewBag) -> string
Type parameters: 'T |
Runs the template with the specified name. |
SetTemplateService(service)
Signature: service:ITemplateService -> unit
|
Sets the template service. |