Click or drag to resize

ExtendedTemplateBaseT Class

Represents an extended RazorEngine modeled template base with helper functions.
Inheritance Hierarchy
SystemObject
  TemplateBase
    TemplateBaseT
      GSF.Web.ModelExtendedTemplateBaseT

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.207-beta
Syntax
public abstract class ExtendedTemplateBase<T> : TemplateBase<T>
View Source

Type Parameters

T

The ExtendedTemplateBaseT type exposes the following members.

Constructors
 NameDescription
Protected methodExtendedTemplateBaseT Creates a new ExtendedTemplateBase.
Top
Properties
 NameDescription
Protected propertyContext Gets the current HttpContext.
Public propertyCurrentWriter Gets the current writer.
(Inherited from TemplateBase)
Protected propertyHasDynamicModel Determines whether this template has a dynamic model.
(Inherited from TemplateBaseT)
Public propertyHtml Gets HTML based helper functions.
Public propertyInternalTemplateService Gets or sets the template service.
(Inherited from TemplateBase)
Public propertyLayout Gets or sets the layout template name.
(Inherited from TemplateBase)
Public propertyModel Gets or sets the model.
(Inherited from TemplateBaseT)
Public propertyRazor Gets or sets the current IRazorEngineService instance.
(Inherited from TemplateBase)
Public propertyRazorEngineObsolete.
Gets or sets the current IRazorEngineService instance.
(Inherited from TemplateBase)
Public propertyTemplateServiceObsolete.
Gets or sets the template service.
(Inherited from TemplateBase)
Public propertyUrl Gets URL based helper functions.
Public propertyViewBag Gets the viewbag that allows sharing state between layout and child templates.
(Inherited from TemplateBase)
Top
Methods
 NameDescription
Public methodDefineSection Defines a section that can written out to a layout.
(Inherited from TemplateBase)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecute Executes the compiled template.
(Inherited from TemplateBase)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
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 methodIsSectionDefined Determines if the section with the specified name has been defined.
(Inherited from TemplateBase)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
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 methodRenderSection Renders the section with the specified name.
(Inherited from TemplateBase)
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 methodToStringReturns a string that represents the current object.
(Inherited from Object)
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, TemplateWriter) Writes the specfied template helper result to the specified writer.
(Inherited from TemplateBase)
Public methodWriteTo(TextWriter, Object) Writes the specified object to the specified TextWriter.
(Inherited from TemplateBase)
Top
Fields
 NameDescription
Protected field_context The current context, filled when we are currently writing a template instance.
(Inherited from TemplateBase)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also