Processes the named template and writes out the output of that template
See also <overrides>
Tag Summary | |
---|---|
required |
<include template="value" /> |
full tag |
<include template="value" restoreNames="value" /> |
Required Attributes |
|
---|---|
template | The name of the template to be included. This value is the project relative path of the template in the pattern project. Note that by placing templates in a uniquely-named directory (e.g. using the pattern id as the folder name), templates can be uniquely named across pattterns and can be more safely overriden. |
Optional Attributes | |
---|---|
restoreNames | A comma-separated list of names. Each of these names which are associated with a model node before the include will be re-associated with those same nodes after the include completes. This attribute is useful when recursivly including templates. |
Example | |
---|---|
<include template="/templates/naming.pat" restoreNames="current" /> This include tag will locate and process the template content of file "/plates/naming.pat". If variable name "current" was associated with a node before the include began, then it would be re-associated with that node once the include action completes. |
© Copyright IBM Corporation 2000,
2006. All Rights Reserved.