Click or drag to resize

TemplateBaseT Methods

The TemplateBaseT generic type exposes the following members.

Methods
  NameDescription
Public methodContentPlaceholder
Insert template content in master template
Public methodDefineSection
Defines a section that can written out to a layout.
(Inherited from TemplateBase.)
Public methodDescription
Define template description
Public methodExecute
Executes the compiled template.
(Inherited from TemplateBase.)
Public methodGetPageIdByNavigationTag
Gets the page id with the specified navigation tag.
Public methodInclude(String)
Includes the template with the specified name, uses the current model and model-type.
(Inherited from TemplateBaseT.)
Public methodInclude(String, Object)
Includes the template with the specified name.
(Inherited from TemplateBaseT.)
Public methodInclude(String, Object, Type)
Includes the template with the specified name.
(Inherited from TemplateBaseT.)
Public methodIncludeFile
Includes the file specified before the razor template is compiled.
Public methodIsSectionDefined
Determines if the section with the specified name has been defined.
(Inherited from TemplateBase.)
Public methodMasterPageFile
Use master page file
Public methodPushPromise
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.
Public methodRaw
Returns the specified string as a raw string. This will ensure it is not encoded.
(Inherited from TemplateBase.)
Public methodRenderBody
Renders the body of the template.
(Inherited from TemplateBase.)
Public methodCode exampleRenderItem
Render a single item from settings defined on an (anonymous) object
Public methodCode exampleRenderItemCreationForm
Render item creating form from settings defined on an (anonymous) object
Public methodCode exampleRenderItemList
Render item list from settings defined on an (anonymous) object
Public methodCode exampleRenderNavigation
Render xml navigation from settings defined on an (anonymous) object
Public methodRenderPageContent
Render page content
Public methodRenderParagraphContent
Render paragraph content
Public methodRenderSection
Renders the section with the specified name.
(Inherited from TemplateBase.)
Public methodRenderSnippet
Add snippet placeholder
Protected methodResolveLayout
Resolves the layout template.
(Inherited from TemplateBaseT.)
Public methodResolveUrl
Resolves the specified path
(Inherited from TemplateBase.)
Public methodSetData
Set the data for this template.
(Inherited from TemplateBase.)
Public methodSetModel
Set the model.
(Inherited from TemplateBaseT.)
Public methodSnippetEnd
End a snippet
Public methodSnippetStart
Start a snippet
Public methodTitle
Public methodTranslate(String)
Translates a text using the current language and design context.
Public methodTranslate(String, String)
Translates a text using the current language and design context using a specified default translation if no translation exists.
Public methodTranslate(String, String, String)
Translates a text using the current language and design context using a specified default translation if no translation exists.
Public methodWrite(Object)
Writes the specified object to the result.
(Inherited from TemplateBase.)
Public methodWrite(TemplateWriter)
Writes the specified template helper result.
(Inherited from TemplateBase.)
Public methodWriteAttribute
Writes an attribute to the result.
(Inherited from TemplateBase.)
Public methodWriteAttributeTo
Writes an attribute to the specified TextWriter.
(Inherited from TemplateBase.)
Public methodWriteLiteral
Writes the specified string to the result.
(Inherited from TemplateBase.)
Public methodWriteLiteralTo
Writes a string literal to the specified TextWriter.
(Inherited from TemplateBase.)
Public methodWriteTo(TextWriter, Object)
Writes the specified object to the specified TextWriter.
(Inherited from TemplateBase.)
Public methodWriteTo(TextWriter, TemplateWriter)
Writes the specfied template helper result to the specified writer.
(Inherited from TemplateBase.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodRazorEngine#Templating#ITemplate#Run
Runs the template and returns the result.
(Inherited from TemplateBase.)
Top
See Also