$variable = ResolveTextTemplate(tmplURL,tmplCP);
tmplURLtmplCP Returns Template Engine output to a variable. The output variable can be used in different scenarios. For example, you can create a template that generates log messages, and use the ResolveTextTemplate and log script functions to write the message to the log. Another example of usage is to include ResolveTextTemplate in a before Process script on a StoryTeller Process, and use the output variable in the StoryTeller Process.
• The template can include $message references if ResolveTextTemplate is run in a context where the corresponding Message is available. See Message interface.
• The template can include $variable references if ResolveTextTemplate is run in a context where the corresponding scripts are available. See Script variable interface.
• The template can include $docdef references if ResolveTextTemplate is run in a context where data from a Composition Center enabled Process (StoryTeller or Template Engine) is available. See Composition Center interface.
• The template can always include Template Engine utilities, e.g. $esc.html and $pce.format. See Template Engine utilities.$template=ResolveTextTemplate("C:\tmpl\template.txt","");log(1,$template);
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |