Skip to end of banner
Go to start of banner

executeTemplate

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Description

Executes a template. All variables already defined in the script are passed to that template. All variables already defined in the script are passed to that template. This routine obeys the context it is called. If you call it in an issue context, you can access issue fields in the template, if not you cannot.

Parameters

Return Type

String

Examples

The template is represented below:

$! if(isNotNull(baseVar)) { $
Well done, <strong>aseVar$ !
$! } else { $
Nobody to congratulate ?!? Whoaaaa !!!
$! } $

The script is represented below:

string baseVar = "Monster";
return executeTemplate("templates/some.tpl"); //note that we refer this relative to Kepler Home directory !

The output produced is following:

 

See also

  • No labels