TemplateBaseT Class |
Namespace: Dynamicweb.Rendering
The TemplateBaseT type exposes the following members.
Name | Description | |
---|---|---|
TemplateBaseT | Initializes a new instance of the TemplateBaseT class |
Name | Description | |
---|---|---|
Consents |
Gets the consents.
| |
CurrentWriter |
Gets the current writer.
(Inherited from TemplateBase.) | |
HasDynamicModel |
Determines whether this template has a dynamic model.
(Inherited from TemplateBaseT.) | |
InternalTemplateService |
Gets or sets the template service.
(Inherited from TemplateBase.) | |
Layout |
Gets or sets the layout template name.
(Inherited from TemplateBase.) | |
Model |
Gets or sets the model.
(Inherited from TemplateBaseT.) | |
Navigation | ||
Pageview |
Gets the pageview of the current pageview.
| |
Razor |
Gets or sets the current IRazorEngineService instance.
(Inherited from TemplateBase.) | |
RazorEngine | Obsolete.
Gets or sets the current IRazorEngineService instance.
(Inherited from TemplateBase.) | |
TemplateService | Obsolete.
Gets or sets the template service.
(Inherited from TemplateBase.) | |
ViewBag |
Gets the viewbag that allows sharing state between layout and child templates.
(Inherited from TemplateBase.) |
Name | Description | |
---|---|---|
ContentPlaceholder |
Insert template content in master template
| |
DefineSection |
Defines a section that can written out to a layout.
(Inherited from TemplateBase.) | |
Description |
Define template description
| |
Execute |
Executes the compiled template.
(Inherited from TemplateBase.) | |
GetPageIdByNavigationTag |
Gets the page id with the specified navigation tag.
| |
Include(String) |
Includes the template with the specified name, uses the current model and model-type.
(Inherited from TemplateBaseT.) | |
Include(String, Object) |
Includes the template with the specified name.
(Inherited from TemplateBaseT.) | |
Include(String, Object, Type) |
Includes the template with the specified name.
(Inherited from TemplateBaseT.) | |
IncludeFile |
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
| |
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.
| |
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
| |
RenderItemCreationForm |
Render item creating form from settings defined on an (anonymous) object
| |
RenderItemList |
Render item list from settings defined on an (anonymous) object
| |
RenderNavigation |
Render xml navigation from settings defined on an (anonymous) object
| |
RenderPageContent |
Render page content
| |
RenderParagraphContent |
Render paragraph content
| |
RenderSection |
Renders the section with the specified name.
(Inherited from TemplateBase.) | |
RenderSnippet |
Add snippet placeholder
| |
ResolveLayout |
Resolves the layout template.
(Inherited from TemplateBaseT.) | |
ResolveUrl |
Resolves the specified path
(Inherited from TemplateBase.) | |
SetData |
Set the data for this template.
(Inherited from TemplateBase.) | |
SetModel |
Set the model.
(Inherited from TemplateBaseT.) | |
SnippetEnd |
End a snippet
| |
SnippetStart |
Start a snippet
| |
Title | ||
Translate(String) |
Translates a text using the current language and design context.
| |
Translate(String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
| |
Translate(String, String, String) |
Translates a text using the current language and design context using a specified default translation if no translation exists.
| |
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 | |
---|---|---|
_context |
The current context, filled when we are currently writing a template instance.
(Inherited from TemplateBase.) |
Name | Description | |
---|---|---|
RazorEngine#Templating#ITemplate#Run |
Runs the template and returns the result.
(Inherited from TemplateBase.) |