Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

<CSP:StudioGenerateTemplate>

Studio template final page

Synopsis

<CSP:StudioGenerateTemplate>

Description

If you are creating a text or new document template within Studio, insert this tag at the top of the final page of the template (the page that generates the actual template text to be inserted within Studio).

This tag ensures that the page will output the correct tags for the Studio to know this is the final template page and that its output should be inserted at the current cursor position.

For example, the final page of the HTML Color Template (see /cachesys/dev/studio/HTMLColor2.csp), looks like this:

<csp:StudioGenerateTemplate>#($G(%request.Data("COLOR",1),"#FFFFFF"))#

The <csp:StudioGenerateTemplate> tag indicate that this is the final page of the template; the text following the tag is inserted at the cursor point (in this case, an expression is evaluated to generate the text).

For more information refer to the Studio Templates documentation.

FeedbackOpens in a new tab