Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

VelocityEngineUtils.MergeTemplateIntoString Method

Merge the specified Velocity template with the given model into a string.

[Visual Basic]
Public Shared Sub MergeTemplateIntoString( _
   ByVal velocityEngine As VelocityEngine, _
   ByVal templateLocation As String, _
   ByVal encoding As String, _
   ByVal model As Hashtable _
)
[C#]
public static string MergeTemplateIntoString(
   VelocityEngine velocityEngine,
   string templateLocation,
   string encoding,
   Hashtable model
);

Parameters

velocityEngine
VelocityEngine to work with
templateLocation
the location of template, relative to Velocity's resource loader path
encoding
the encoding string to use for the merge
model
the Hashtable that contains model names as keys and model objects

Return Value

the result as string

Exceptions

Exception Type Condition
VelocityException thrown if any exception is thrown by the velocity engine

See Also

VelocityEngineUtils Class | Spring.Template.Velocity Namespace