![]() | RazorTemplateBase<TModel> Methods |
The RazorTemplateBase<TModel> generic type exposes the following members.
Name | Description | |
---|---|---|
![]() | ContentPlaceholder |
Insert template content in master template
(Inherited from TemplateBase<T>.) |
![]() | DefineSection |
Defines a section that can written out to a layout.
(Inherited from TemplateBase.) |
![]() | Description |
Define template description
(Inherited from TemplateBase<T>.) |
![]() | Execute |
Executes the compiled template.
(Inherited from TemplateBase.) |
![]() | GetBoolean |
Gets a boolean representation of the tag value.
|
![]() | GetDate |
Gets a date representation of the tag value.
|
![]() | GetDouble |
Gets a double representation of the tag value.
|
![]() | GetGlobalValue |
Gets a value from the global tags collection.
|
![]() | GetInteger |
Gets a integer representation of the tag value.
|
![]() | GetLong |
Gets a string representation of the tag value.
|
![]() | GetLoop | |
![]() | GetPageIdByNavigationTag |
Gets the page id with the specified navigation tag.
(Inherited from TemplateBase<T>.) |
![]() | GetString |
Gets a string representation of the tag value.
|
![]() | GetValue |
Gets the value.
|
![]() | Include(String) |
Includes the file specified before the razor template is compiled.
|
![]() | Include(String, Object) |
Includes the template with the specified name.
(Inherited from TemplateBase<TModel>.) |
![]() | Include(String, String) |
Includes the file specified before the razor template is compiled.
|
![]() | Include(String, Object, Type) |
Includes the template with the specified name.
(Inherited from TemplateBase<TModel>.) |
![]() | IncludeFile(String) |
Includes the file specified before the razor template is compiled.
(Inherited from TemplateBase<T>.) |
![]() | IncludeFile(String, String) |
Includes the file specified before the razor template is compiled.
|
![]() | IsSectionDefined |
Determines if the section with the specified name has been defined.
(Inherited from TemplateBase.) |
![]() | MasterPageFile |
Use master page file
(Inherited from TemplateBase<T>.) |
![]() | PushPromise |
Support for sending push promises to HTTP 2.0 clients. Call this method for static ressources and images that the current response will trigger new requests for. Typically js, css and image files.
(Inherited from TemplateBase<T>.) |
![]() | Raw |
Returns the specified string as a raw string. This will ensure it is not encoded.
(Inherited from TemplateBase.) |
![]() | RenderBody |
Renders the body of the template.
(Inherited from TemplateBase.) |
![]() ![]() | RenderItem |
Render a single item from settings defined on an (anonymous) object
(Inherited from TemplateBase<T>.) |
![]() ![]() | RenderItemCreationForm |
Render item creating form from settings defined on an (anonymous) object
(Inherited from TemplateBase<T>.) |
![]() ![]() | RenderItemList |
Render item list from settings defined on an (anonymous) object
(Inherited from TemplateBase<T>.) |
![]() ![]() | RenderNavigation |
Render xml navigation from settings defined on an (anonymous) object
(Inherited from TemplateBase<T>.) |
![]() | RenderPageContent |
Render page content
(Inherited from TemplateBase<T>.) |
![]() | RenderParagraphContent |
Render paragraph content
(Inherited from TemplateBase<T>.) |
![]() | RenderSection |
Renders the section with the specified name.
(Inherited from TemplateBase.) |
![]() | RenderSnippet |
Add snippet placeholder
(Inherited from TemplateBase<T>.) |
![]() | ResolveLayout |
Resolves the layout template.
(Inherited from TemplateBase<TModel>.) |
![]() | ResolveUrl |
Resolves the specified path
(Inherited from TemplateBase.) |
![]() | SetData |
Set the data for this template.
(Inherited from TemplateBase.) |
![]() | SetModel |
Set the model.
(Inherited from TemplateBase<TModel>.) |
![]() | SnippetEnd |
End a snippet
(Inherited from TemplateBase<T>.) |
![]() | SnippetStart |
Start a snippet
(Inherited from TemplateBase<T>.) |
![]() | TemplateTags() |
Prints a table of the template tags in the current template instance.
|
![]() | TemplateTags(String) |
Prints a table of the template tags containing the search string in the current template instance.
|
![]() | Title | (Inherited from TemplateBase<T>.) |
![]() | ToJson |
Serializes the data in the template instance to json.
|
![]() | Translate(String) |
Translates a text using the current language and design context.
(Inherited from TemplateBase<T>.) |
![]() | Translate(String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
(Inherited from TemplateBase<T>.) |
![]() | Translate(String, String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
(Inherited from TemplateBase<T>.) |
![]() | Write(Object) |
Writes the specified object to the result.
(Inherited from TemplateBase.) |
![]() | Write(TemplateWriter) |
Writes the specified template helper result.
(Inherited from TemplateBase.) |
![]() | WriteAttribute |
Writes an attribute to the result.
(Inherited from TemplateBase.) |
![]() | WriteAttributeTo |
Writes an attribute to the specified TextWriter.
(Inherited from TemplateBase.) |
![]() | WriteLiteral |
Writes the specified string to the result.
(Inherited from TemplateBase.) |
![]() | WriteLiteralTo |
Writes a string literal to the specified TextWriter.
(Inherited from TemplateBase.) |
![]() | WriteTo(TextWriter, Object) |
Writes the specified object to the specified TextWriter.
(Inherited from TemplateBase.) |
![]() | WriteTo(TextWriter, TemplateWriter) |
Writes the specfied template helper result to the specified writer.
(Inherited from TemplateBase.) |
Name | Description | |
---|---|---|
![]() ![]() | RazorEngine#Templating#ITemplate#Run |
Runs the template and returns the result.
(Inherited from TemplateBase.) |