...
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 function 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.
...
The template is represented below:
Code Block |
---|
|
$! if(isNotNull(baseVar)) { $
Well done, <strong>aseVar$ !
$! } else { $
Nobody to congratulate ?!? Whoaaaa !!!
$! } $ |
The script is represented below:
Code Block |
---|
|
string baseVar = "Monster";
return executeTemplate("templates/some.tpl"); //note that we refer this relative to Kepler Home directory ! |
The output produced is following:
Code Block |
---|
|
Well done, Monster! |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "string_routinefunction" and space = currentSpace ( ) |
---|
labels | array_routinesfunctions |
---|
|