RazorEngineServiceExtensions
Extensions for the IRazorEngineService.
Static members
Static member | Description |
AddTemplate(...)
Signature: (service:IRazorEngineService * name:string * templateSource:ITemplateSource) -> unit
|
Adds a given template to the template manager as dynamic template. |
AddTemplate(...)
Signature: (service:IRazorEngineService * key:ITemplateKey * templateSource:string) -> unit
|
Adds a given template to the template manager as dynamic template. |
AddTemplate(...)
Signature: (service:IRazorEngineService * name:string * templateSource:string) -> unit
|
Adds a given template to the template manager as dynamic template. |
Compile(service, name, modelType)
Signature: (service:IRazorEngineService * name:string * modelType:Type) -> unit
|
|
Compile(...)
Signature: (service:IRazorEngineService * templateSource:ITemplateSource * key:ITemplateKey * modelType:Type) -> unit
|
See RazorEngineService.Compile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.Compile. |
Compile(...)
Signature: (service:IRazorEngineService * templateSource:string * key:ITemplateKey * modelType:Type) -> unit
|
See RazorEngineService.Compile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.Compile. |
Compile(...)
Signature: (service:IRazorEngineService * templateSource:ITemplateSource * name:string * modelType:Type) -> unit
|
See RazorEngineService.Compile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.Compile. |
Compile(...)
Signature: (service:IRazorEngineService * templateSource:string * name:string * modelType:Type) -> unit
|
See RazorEngineService.Compile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.Compile. |
CompileRunner(service, templateSource)
Signature: (service:IRazorEngineService * templateSource:string) -> ITemplateRunner<'TModel>
Type parameters: 'TModel |
Adds and compiles a new template using the specified and returns a TemplateRunner`1. Returns: |
CompileRunner(...)
Signature: (service:IRazorEngineService * templateSource:string * name:string) -> ITemplateRunner<'TModel>
Type parameters: 'TModel |
Adds and compiles a new template using the specified and returns a TemplateRunner`1. Returns: |
IsTemplateCached(...)
Signature: (service:IRazorEngineService * name:string * modelType:Type) -> bool
|
Checks if a given template is already cached. Returns: |
Run(...)
Signature: (service:IRazorEngineService * name:string * writer:TextWriter * modelType:Type * model:obj * viewBag:DynamicViewBag) -> unit
|
|
Run(...)
Signature: (service:IRazorEngineService * key:ITemplateKey * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.Run. Convenience method which creates a TextWriter and returns the result as string. Returns: |
Run(...)
Signature: (service:IRazorEngineService * name:string * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.Run. Convenience method which creates a TextWriter and returns the result as string. Returns: |
RunCompile(...)
Signature: (service:IRazorEngineService * name:string * writer:TextWriter * modelType:Type * model:obj * viewBag:DynamicViewBag) -> unit
|
|
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:ITemplateSource * key:ITemplateKey * writer:TextWriter * modelType:Type * model:obj * viewBag:DynamicViewBag) -> unit
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:string * key:ITemplateKey * writer:TextWriter * modelType:Type * model:obj * viewBag:DynamicViewBag) -> unit
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:ITemplateSource * name:string * writer:TextWriter * modelType:Type * model:obj * viewBag:DynamicViewBag) -> unit
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:string * name:string * writer:TextWriter * modelType:Type * model:obj * viewBag:DynamicViewBag) -> unit
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. |
RunCompile(...)
Signature: (service:IRazorEngineService * key:ITemplateKey * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.RunCompile. Convenience method which creates a TextWriter and returns the result as string. Returns: |
RunCompile(...)
Signature: (service:IRazorEngineService * name:string * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.RunCompile. Convenience method which creates a TextWriter and returns the result as string. Returns: |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:ITemplateSource * key:ITemplateKey * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. Convenience method which creates a TextWriter and returns the result as string. Returns: |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:string * key:ITemplateKey * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. Convenience method which creates a TextWriter and returns the result as string. Returns: |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:ITemplateSource * name:string * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. Convenience method which creates a TextWriter and returns the result as string. Returns: |
RunCompile(...)
Signature: (service:IRazorEngineService * templateSource:string * name:string * modelType:Type * model:obj * viewBag:DynamicViewBag) -> string
|
See RazorEngineService.RunCompile. Convenience method which calls RazorEngineService.AddTemplate before calling RazorEngineService.RunCompile. Convenience method which creates a TextWriter and returns the result as string. Returns: |