Charlie Duong fc82ef0cf0 Deprecated w-on* attributes (#434)
Added support for on*() attributes.
2016-11-16 10:53:51 -08:00

11 lines
309 B
Plaintext

<div w-bind>
<h1>app-macro-events</h1>
<macro renderButton(id, label, handler)>
<button ref="${id}" type="button" onClick("${handler}")>
$label
</button>
</macro>
<renderButton id="foo" label="Foo" handler="handleFooClick"/>
<renderButton id="bar" label="Bar" handler="handleBarClick"/>
</div>