Namespace ZptSharp.Tal
Classes
AttributeDefinition
Model for an attribute definition, as would be used by a TAL 'attributes' attribute.
AttributeDefinitionsProvider
Implementation of IGetsAttributeDefinitions which parses and returns a collection of AttributeDefinition from an 'attributes' attribute value.
AttributesAttributeDecorator
Decorator for IHandlesProcessingError which handles TAL 'attributes' attributes.
ConditionAttributeDecorator
Decorator for IHandlesProcessingError which handles TAL 'condition' attributes.
ContentOrReplaceAttributeDecorator
Implementation of IHandlesProcessingError which handles both TAL 'content' or TAL 'replace' attributes. Their functionality is somewhat similar, and they cannot coexist on the same DOM node.
DefineAttributeDecorator
Decorator for IHandlesProcessingError which handles TAL 'define' attributes.
DomExpressionEvaluator
Implementation of IEvaluatesDomValueExpression which evaluates DOM expressions returning an object that contains a list of nodes and supplemental information.
DomValueExpressionResult
Represents the result retrieved from IEvaluatesDomValueExpression.
InvalidTalAttributeException
Thrown when a TAL attribute value is improperly-formed or otherwise invalid.
NoOpTalContextProcessor
A IProcessesExpressionContext which performs no TAL-related activity. This is used at the centre of the decorator stack. If no particular TAL attributes are found then an empty processing result is returned.
OmitTagAttributeDecorator
Decorator for IHandlesProcessingError which handles TAL 'omit-tag' attributes.
OnErrorAttributeDecorator
Decorator for IHandlesProcessingError which handles TAL 'on-error' attributes.
This decorator is a little unusual (compared to the others) in that it really just puts a try/catch
around whatever it wraps. If there is an error and there is a TAL on-error attribute present upon the node
then this decorator will handle the error and prevent the error from halting the whole rendering process.
OnErrorExceptionAdapter
A wrapper/adapter class for instances of System.Exception which are added to the expression context by an OnErrorAttributeDecorator. This exposes a standard API, which is part of the TAL spec.
OnErrorHandlingException
Raised when a TAL on-error
attribute encounters an exception whilst
attempting to handle a different rendering exception.
In this case, the System.Exception.InnerException will relate to the error encountered during the on-error handling process. The OriginalException is the error (raised in a different part of the rendering process) which the on-error attribute was attempting to handle.
RecordMetalMacroNameDecorator
A decorator for IHandlesProcessingError which detects METAL define-macro
attributes and adds a TALES local variable indicating the name of that macro. This is recorded as
the macroname
variable.
RepeatAttributeDecorator
Decorator for IHandlesProcessingError which handles TAL 'repeat' attributes.
RepetitionContextProvider
Implementation of IGetsRepetitionContexts which gets and prepares the repetition contexts.
TalAttributeSpecProvider
Implementation of IGetsTalAttributeSpecs which gets attribute specifications for the TAL attributes.
TalContextProcessorFactory
Implementation of IGetsTalContextProcessor which returns a context processor suitable for processing the TAL model-binding syntax.
TalExpressionEvaluationException
Thrown when a TAL attribute operation fails due to a error when evaluating a value expression.
TalExpressionResultInterpreter
Implementation of IInterpretsExpressionResult which provides interpretations of expression results, following the rules of TAL.
VariableDefinition
Model type representing a single TAL variable definition.
VariableDefinitionProvider
Implementation of IGetsVariableDefinitionsFromAttributeValue which parses and returns information about variable definitions from a TAL 'define' attribute value.
Interfaces
IEvaluatesDomValueExpression
An object which evaluates an expression and returns a value which may be used by the DOM.
IGetsAttributeDefinitions
An object which can provide a collection of AttributeDefinition from a string value. That string is expected to be in the format of a TAL 'attributes' attribute value.
IGetsRepetitionContexts
An object used by RepeatAttributeDecorator which gets the collection of ExpressionContext which are exposed by a specified expression result.
IGetsTalAttributeSpecs
An object which gets AttributeSpec instances for well-known TAL attributes.
IGetsTalContextProcessor
An object which can get a IHandlesProcessingError suitable for the TAL document-manipulation process.
IGetsVariableDefinitionsFromAttributeValue
An object which parses an attribute value and returns a collection of variable definitions.
IInterpretsExpressionResult
An object which interprets the result of a TALES expression, for the purposes of TAL.