CSP and HTML Tag Reference
<CSP:StudioGenerateTemplate>
 [Next]
   
Server:docs1
Instance:LATEST
User:UnknownUser
 
-
Go to:
Search:    

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.