Python Macro

The macro adds the ability to write scripts in Python in wiki pages. This is a shortcut for the Script Macro equivalent to {{script language="python"}} to execute python scripts based on any JSR-223 Python provider like Jython.

Usage

{{python}}
print "Hello World"
{{/python}}

Parameters Definition

NameOptionalAllowed valuesDefault valueDescription
languageyesthe identifier of the JSR 223 engine Indicates which engine to use to execute the provided script. 
outputyestrue/falsetrueIndicates the output result has to be inserted back in the document.
wikiyestrue/falsetrueindicates if the result of the script execution has to be parsed by the current wiki parser. If not, it is put into a verbatim block.
jarsyescomma-separated list of JARs that will be added to the script execution class loadernone

Example

{{python}}
print "Hello World"
{{/python}}

Related Pages

Search this space