Using an Expander

An Expander is a utility included in the Default Velocity context that you use to explode references. Uses for an Expander are as follows:

Expander Variable Syntax

Expander Usage

When defining a rule, use the direct syntax. The whole filename string is automatically passed to the default Expander. For example, for an output file the defintion might look like the following:

Within your template, use $exp.expandVar(expanderVariable), where expanderVariable complies with the syntax above. For example, $exp.expandVar("${ppProp.xmlDirectory}").

© copyright 2005, 2006, 2007 Cisco Systems, Inc. - All rights reserved