Last active
December 20, 2018 17:45
-
-
Save paulcsmith/0b6b0da6a731ee8c3d1712cbb5b2e077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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