Castle.MonoRail.Framework.Views.NVelocity
Pendent
Initializes a new instance of the class.
The view component factory.
The view engine instance
Processes the first param.
first param can either be the literal string 'with' which means the user
is using the syntax #blockcomponent(ComponentName with "param1=value1" "param2=value2")
or it could be a dictionary string like:
#blockcomponent(ComponentName "#{ param1='value1', param2='value2' }")
anything different than that will throw an exception
The node.
The context.
The children count.
Pendent
Render's the contents of the directive and store them in the context
variable so it can be referenced later on the template
#capturefor(someId)
Some content goes here
#end
$someId
Pendent
How this directive is to be initialized.
How this directive is to be rendered
Return the name of this directive
Get the directive type BLOCK/LINE
Provides a helper to access static operations on types to NVelocity.
the type to access
Invoke a get operation on the value type
the property or field to get
the value
Invoke a method on the value type
the method name
the argumenents.
the result of the method invocation.
Invoke a set operation on the value type
the property or field to set
the value to set the property or field to.
Pendent
Defines the behavior when a property is read
Property name.
value back to the template
Defines the behavior when a property is written
Property name.
The value to assign.
Invokes the specified method.
The method name.
The method arguments.
value back to the template
Defines the behavior when a property is read
Property name.
value back to the template
Defines the behavior when a property is written
Property name.
The value to assign.
Invokes the specified method.
The method name.
The method arguments.
value back to the template
Initializes a new instance of the class.
The generator.
Defines the behavior when a property is read
Property name.
value back to the template
Defines the behavior when a property is written
Property name.
The value to assign.
Invokes the specified method.
The method name.
The method arguments.
value back to the template
Pendent
Initializes a new instance of the class.
Manages resource (views) loading and processing, calls and is also
called by NVelocity to allow recursive expansion of templates
gets the named resource as a stream, parses and inits
's implementation for
NVelocity
Initializes a new instance of the class.
Name of the component.
The parent node.
The view engine.
The view renderer.
Determines whether the current component declaration on the view
has the specified section.
Name of the section.
true if the specified section exists; otherwise, false.
Renders the component body.
Pendent
Renders the the specified section
Name of the section.
Renders the the specified section
Name of the section.
The writer.
Renders the body into the specified
The writer.
Gets the name of the component.
The name of the component.
Gets the dictionary that holds variables for the
view and for the view component
The context vars.
Gets the component parameters that the view has passed
to the component
The component parameters.
Gets or sets the view to render.
The view to render.
Gets the writer used to render the component
The writer.
Gets the view engine instance.
The view engine.
Implements a view engine using the popular Velocity syntax.
For details on the syntax, check the VTL Reference Guide
http://jakarta.apache.org/velocity/docs/vtl-reference-guide.html
Creates a new instance.
Evaluates whether the specified template exists.
true if it exists
Processes the specified context.
The context.
The controller.
Name of the view.
Processes the view - using the templateName to obtain the correct template
and writes the results to the System.TextWriter. No layout is applied!
Initializes basic velocity properties. The main purpose of this method is to
allow this logic to be overrided.
The collection to populate.
Resolves the template name into a velocity template file name.
Resolves the template name into a velocity JS template file name.
Resolves the layout template name into a velocity template file name.
Gets a value indicating whether the view engine
support the generation of JS.
true if JS generation is supported; otherwise, false.
Gets the view file extension.
The view file extension.
Gets the JS generator file extension.
The JS generator file extension.
This exception is thrown when an error occurs during resource processing (expansion)