Skip to content

Instantly share code, notes, and snippets.

@fponticelli
Last active March 29, 2017 14:20
Show Gist options
  • Save fponticelli/7c447330be3bac19435585c17cfe6c7f to your computer and use it in GitHub Desktop.
Save fponticelli/7c447330be3bac19435585c17cfe6c7f to your computer and use it in GitHub Desktop.
button("click me")
.large()
.danger()
.disabled()
button([
Content("click me"),
Large,
Danger,
Disabled
])
button
.with(Content("click me")),
.with(Large),
.with(Danger),
.with(Disabled)
button("click me")
.size(Large)
.intent(Danger)
.disabled(true)
button
.size(Large)
.intent(Danger)
.disabled(true)
.content("click me")
<button size="large" intent="danger" disabled="true">click me</button>
dom('
<button size=Large intent=Danger disabled=true>
click me
</button>
')
input
.type(Text)
.value("some string")
.input(e -> trace(e));
div
.cls("one")
.cls("other")
.cls.when(true, "conditional")
.cls.unless(false, () -> "unlikely") // ??? or use magic lazy conversion?
.children(span.text("here we go"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment