Global.ExecuteTemplate

Allows execution of another Help Builder template from the currently executing template. The template is parsed and executed and returns its result back as a string.

Example usage inside of a template:

<<%= ExecuteTemplate(oHelp,"PageHeader.wcs") %>>

This function is a great tool to share common content between templates so that you don't have to add the same code into each template - instead you can simply reference the template and make the change in one place.

The most common use for templates is likely for headers and footers.


o.Global.ExecuteTemplate(oHelp,lcTemplate)

Parameters

oHelp
Instance of the the Help Builder object - usually oHelp in the page.

lcTemplate
The file name of the Help Builder template as a string. This path is relative to the templates directory, so the following are valid:

PageHeader.wcs
MyTemplates\MyHeader.wcs


See also:

Class Global

© West Wind Techologies, 2018 • Updated: 12/13/11
Comment or report problem with topic