Hyperscript.jl icon indicating copy to clipboard operation
Hyperscript.jl copied to clipboard

Add support for a do-block syntax

Open schneiderfelipe opened this issue 3 years ago • 2 comments

This adds the proposed in/resolves #32:

julia> using Hyperscript

julia> @tags p

julia> p() do
           "child"
       end
<p>child</p>

julia> m("p") do
           "child"
       end
<p>child</p>

schneiderfelipe avatar May 20 '21 15:05 schneiderfelipe

Thanks for this. I prefer the do syntax to the argument syntax used by Hyperscript.

How would one add multiple children though?

MarkNahabedian avatar Oct 20 '22 21:10 MarkNahabedian

Not sure. I have completely forgotten I coded this. 🤔 Feel free to use it for anything you like though. 🤗

schneiderfelipe avatar Oct 21 '22 01:10 schneiderfelipe