[This is preliminary documentation and is subject to change.]
The WaveTemplate type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | WaveTemplate | Initializes a new instance of the WaveTemplate class |
![]() | WaveTemplate(WorkContext) | Initializes a new instance of the WaveTemplate class |
Methods
Name | Description | |
---|---|---|
![]() | BindGlobalContexts |
Infrastructure. Sets Context property. Normally this method should never be called by developers
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | DoContextBinding |
Infrastructure. Override to perform extra steps after Context property gets set.
Normally this method should never be called by developers
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | DoPostRender | (Overrides Template TContext, TTarget, TRenderingContext DoPostRender(Exception).) |
![]() | DoPreRender |
Performs pre-rendering actions
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | DoRender |
Performs actual rendering
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() ![]() | EscapeJSLiteral |
Escapes JS literal, see NFX.Web.Utils.EscapeJSLiteral
|
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() ![]() | HTMLEncode |
Converts string to HTML-encoded string
|
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Render(TTarget, TRenderingContext) |
Renders template by generating content into target
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | Render(ResponseRenderingTarget, Object) |
Renders template by generating content into ResponseRenderingTarget
|
![]() | Render(WorkContext, Object) |
Renders template by generating content into WorkContext
|
![]() | RenderToString(Boolean, Object) |
Renders template to string
|
![]() | RenderToString(WorkContext, Boolean, Object) |
Renders template to string in a WorkContext
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Extension Methods
Properties
Name | Description | |
---|---|---|
![]() | CanReuseInstance |
Override to indicate whetner the instance of the template may be reused for processing of other requests
(possibly by parallel threads). Override to return false if there is any per-request state shared in instance fields
False by default so multiple requests can not reuse the instance
(Overrides Template TContext, TTarget, TRenderingContext CanReuseInstance.) |
![]() | ContentType |
Override to provides response content type. Default value is HTML
|
![]() | Context |
Custom context for the lifetime of this template
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | CSRFToken |
Returns CSRF token for session if it is available or null
|
![]() | RenderingContext |
Returns thread-local rendering context which is specific for this call to Render()
(Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() | Response | |
![]() | Session |
Returns session if it is available or null
|
![]() | Target |
Returns thread-local target which is specific for this call to Render()
(Inherited from Template TContext, TTarget, TRenderingContext .) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
![]() ![]() | ITemplate Context | (Inherited from Template TContext, TTarget, TRenderingContext .) |
![]() ![]() | ITemplate Render | (Inherited from Template TContext, TTarget, TRenderingContext .) |
See Also