{"repo":"onionpancakes/chassis","free":true,"listed":false,"github":"https://github.com/onionpancakes/chassis","clone":"git clone https://github.com/onionpancakes/chassis.git","description":"Fast HTML5 templating in Clojure","language":"Clojure","stars":162,"topics":["clojure","html","template","hiccup","serialization"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Chassis Fast HTML5 templating in Clojure. Renders Hiccup style HTML vectors to strings. Highly optimized runtime serialization without macros. Even faster serialization when combined with compiling macros. See Compiling Elements. See Performance. Status Production released. Deps Add one of these deployments to deps.edn . GitHub Clojars Example Runtime HTML Serialization Compiled HTML Serialization Usage Require the namespace. Elements Use c/html function to generate HTML strings from vectors. Vectors with global keywords in the head position are treated as normal HTML elements. The keyword's name is used as the element's tag name. Maps in the second position are treated as attributes. Use global keywords to name attribute keys. The rest of the vector is treated as the element's content. They may be of any type including other elements. Sequences, eductions, and non-element vectors are logically flattened with the rest of the content. Id and Class Sugar Like Hiccup, id and class attributes can be specified along with the tag name using css style # and . syntax. However there are differences from Hiccup. Boolean Attributes Use true / false to toggle boolean attributes. Composite Attribute Values Collections of attribute values are concatenated as spaced strings. Maps of attribute values are concatenated as style strings. Attribute collections and maps arbitrarily nest. Write to Appendable Avoid intermediate allocation by writing directly to java.lang.Appendable using the c/writ","default_branch":null,"files":null,"tree":[],"storefront":"/r/onionpancakes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/onionpancakes/chassis/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}