Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Last active Dec 20, 2018
Embed
What would you like to do?
d "font-small justify-content" do
render_stuff
end
# If you need an id, pass it as an extra arg. I think it is a bit more rare to use id so this might be ok for most people
d "my-class", id: "ok-fine-i-need-an-id" do
end
private def d(classes : String, **other_args)
div(class: classes, **other_args) do
yield
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment