Skip to content

Deprecation: var, assign, invoke tags

Taylor Hunt edited this page Jul 30, 2019 · 1 revision

The <var>, <assign> and <invoke> tags are deprecated in favor of the $ inlineJavaScript syntax, as shown below:

Variable declaration (<var>)

<var name="Frank"/>

…becomes:

$ var name="Frank";

Note: <var> is still a standard HTML element, it’s just no longer hijacked for marko’s purposes.

Variable reassignment (<assign>)

<assign name="Jane"/>

…becomes:

$ name = "Jane";

Expression execution (<invoke>)

<invoke console.log('Hello World')/>

…becomes:

$ console.log('Hello World');