We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
<script template-helpers> and <script marko-init> are deprecated in favor of static and class blocks.
<script template-helpers>
<script marko-init>
static
class
The old template-helpers attribute:
template-helpers
<script template-helpers> function sum(a, b) { return a + b; } </script> <output>The sum of 1 + 2 is ${sum(1, 2)}</output>
…is replaced with the static marker:
static function sum(a, b) { return a + b; } <output>The sum of 1 + 2 is ${sum(1, 2)}</output>
For more information on the change, see issue #547.