Forked from Chris Coyier's Pen Reveal Form Fields as Needed with CSS :checked.
A Pen by Captain Anonymous on CodePen.
(require '[net.cgrand.enlive-html :as html]) | |
(def testfunc (html/transformation [:h2] (html/wrap :div) [:div] (html/set-attr "something" "value"))) | |
(html/defsnippet snippet1 "templates/jade/index.html" [:h2] [] [html/any-node] testfunc [:div] (html/set-attr "tasdf" "asdfasdf")) | |
(snippet1) | |
;;=> ({:tag :div, :attrs {"tasdf" "asdfasdf", "something" "value"}, :content [{:tag :h2, :attrs {:class "navigation-title"}, :content ["Navigation"]}]}) |
Forked from Chris Coyier's Pen Reveal Form Fields as Needed with CSS :checked.
A Pen by Captain Anonymous on CodePen.
I hereby claim:
To claim this, I am signing this object: