Hiccup
Jan 27, 2015
Hiccup
• James Reeves• David Santiago• Sebastián Bernardo Galkin
Modulos
• hiccup.core• hiccup.form-helpers• hiccup.page-helpers
hiccup.core
• add-optional-attrs• defelem • defhtml • escape-html • html
HTML
• (html [:a {:href "http://github.com"} "GitHub"])
• <a href="http://github.com">GitHub</a>
Escape-html
hiccup.form-helpers• check-box • drop-down • file-upload • form-to • hidden-field• label• password-field • radio-button • reset-button• select-options • submit-buttontext-area • text-field
Text-Field
hiccup.page-helpers• encode-params• html4• html5• include-css • include-js • javascript-tag • link-to • ordered-list• unordered-list• url• xhtml • xhtml-tag • xml-declaration
URL
(url "/group/" 4 "/products" {:page 9}) => "/group/4/products?page=9"
Duvidas?