You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @yurivish, how do you feel about adding a do-block syntax (similar to markaby)? That would allow one to write the following:
using Hyperscript
@tags div em a
# What I'm proposing:
div.header() doa(href="https://github.com/yurivish/Hyperscript.jl") doem("Hyperscript.jl")
endend
instead of
# Current equivalent:
div.header(a(href="https://github.com/yurivish/Hyperscript.jl", em("Hyperscript.jl")))
or, equivalently,
# Indented current equivalent:
div.header(
a(href="https://github.com/yurivish/Hyperscript.jl",
em("Hyperscript.jl")
)
)
That could increase readability in general. Of course, nothing would break; it would only be an alternative way of writing things.
If you like it, I could make a PR 😀
EDIT: a single line is all that's required to make the example above work:
Hi @yurivish, how do you feel about adding a do-block syntax (similar to markaby)? That would allow one to write the following:
instead of
or, equivalently,
That could increase readability in general. Of course, nothing would break; it would only be an alternative way of writing things.
If you like it, I could make a PR 😀
EDIT: a single line is all that's required to make the example above work:
The text was updated successfully, but these errors were encountered: