Created
April 8, 2017 14:16
-
-
Save ethagnawl/c34eb264ba28f3cf9e8e453d47f13c54 to your computer and use it in GitHub Desktop.
hiccup.def/defelem example
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
input (hiccup-def/defelem input [& args] [:input {:name "name" :type "text"}]) | |
(input {:data-foo "bar"}) ;; <input name="name" type="text" data-foo="bar"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment