Interface IConfiguresRootContext
An object which may be used to add additional named values to the root TALES context.
Namespace: ZptSharp
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IConfiguresRootContext
Remarks
Any values added by this will be available at the root TALES context of the rendering operation. These values are essentially additional pre-defined variables.
This type is mainly used via ContextBuilder. The 'context builder' property of a rendering configuration is the recommended mechanism of expanding the root rendering context with additional data.
Methods
| Improve this Doc View SourceAddToRootContext(String, Object)
Adds a named value to the root ZPT context.
Declaration
void AddToRootContext(string name, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the value to be added. |
System.Object | value | The value to be added for the name. |
Remarks
This named value will be available from the root context within rendering operations.
That means that it will essentially be a pre-defined variable available throughout the
source document. It may also be accessed via the special CONTEXTS
keyword.