From Documentation

Jump to: navigation, search

A page could have scripts in multiple different scripting language.

<button onClick="javascript:do_something_in_js()"/>
<zscript language="groovy">

If the scripting language is omitted, Java is assumed. If you'd like to change the default scripting language, use the page directive as follows.

<?page zscriptLanguage="Groovy"?>

	def name = "Hello World!";

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.