Skip to content

Instantly share code, notes, and snippets.

@paulcsmith
Last active December 20, 2018 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcsmith/0b6b0da6a731ee8c3d1712cbb5b2e077 to your computer and use it in GitHub Desktop.
Save paulcsmith/0b6b0da6a731ee8c3d1712cbb5b2e077 to your computer and use it in GitHub Desktop.
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