-
Notifications
You must be signed in to change notification settings - Fork 643
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:
<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.
<assign name="Jane"/>
…becomes:
$ name = "Jane";
<invoke console.log('Hello World')/>
…becomes:
$ console.log('Hello World');
To automatically fix deprecated marko syntax, try the marko migrate
command from the CLI.