weavejester/hiccup
View on GitHub ↗ ★ 2,857 Clojure
Fast library for rendering HTML in Clojure
64 mentions on Hacker News by 59 people: 2 stories, 62 comments · first 2010-04-26 · latest 2025-12-03
20082026
-
▲ 2
Show HN: Niccup – Hiccup-Like HTML Generation in ~120 Lines of Pure Nixstory by embedding-shape · 2025-12-03 · 0 comments
-
…can use metadata to model html attributes but in clojure people are using plain vector for that. https://github.com/weavejester/hiccup tl;dr first element of the vector is a tag, second is a map of attributes test are children nodes: [:h1…
comment by delaguardo · 2025-11-25 · in A fast EDN (Extensible Data Notation) reader written in C11 with SIMD boost -
similar library: https://github.com/weavejester/hiccup
comment by lsh0 · 2024-07-24 · in Show HN: Slab – A programmable markup language for generating HTML -
…[0] https://github.com/sunng87/ring-jetty9-adapter [1] https://github.com/metosin/reitit [2] https://github.com/weavejester/hiccup [3] https://www.hugsql.org/
comment by robto · 2024-05-22 · in Try Clojure -
…There's a reason people keep coming back to it: it's actually really nice to write markup this way. https://github.com/weavejester/hiccup https://github.com/JuneKelly/sneeze
comment by asa400 · 2024-03-21 · in Ludic: New framework for Python with seamless Htmx support -
Look at that, you almost reinvented `hiccup` ( https://github.com/weavejester/hiccup ) :) Taking things a bit further, you get an almost full copy of hiccup, and can save even more space and make it even simpler: [div.card [h3 "Familiar…
comment by diggan · 2024-01-16 · in Ask HN: What if we wrote HTML with [brackets][/brackets]? -
…gets out of the way. DSL-wise, I've rather enjoyed Clojure's Hiccup [1]. [0] https://emmet.io/ [1] https://github.com/weavejester/hiccup
comment by nikolaplejic · 2023-09-20 · in Writing HTML by hand -
Like this amirite https://github.com/weavejester/hiccup
comment by KRAKRISMOTT · 2023-08-30 · in Produce HTML from S-Expressions -
…( https://htmx.org ) and server-side rendering (Hiccup way of manipulating HTML is just amazing, https://github.com/weavejester/hiccup ). - Schema management: Malli ( https://github.com/metosin/malli ) - Lifecycle management: Mount,…
comment by jgrodziski · 2023-08-10 · in A History of Clojure (2020) [pdf] -
…syntax is flexible/simple enough to make generating HTML in a structured way the natural solution. https://github.com/weavejester/hiccup
comment by MBlume · 2023-05-26 · in That people produce HTML with string templates is telling us something -
That is why I like Hiccup/ Clojure so much: https://github.com/weavejester/hiccup It is very natural to produce something resembling a document in pure Clojure data structures and then just convert it to valid HTML. I think, Reagent has…
comment by kaliszad · 2023-05-26 · in That people produce HTML with string templates is telling us something -
You’re halfway to Clojure’s hiccup syntax[1] there. [1]: https://github.com/weavejester/hiccup/blob/master/doc/syntax...
comment by mechanicum · 2023-03-07 · in Rux: A JSX-inspired way to render view components in Ruby -
▲ 3
Hiccup: Fast library for rendering HTML in Clojurestory by memorable · 2022-06-07 · 2 comments
-
Indeed. We all know hiccup[0] style is the one true way to do it. [0] https://github.com/weavejester/hiccup
comment by harryvederci · 2021-11-05 · in Wasp: WASM Programming Language -
…is very nice! :) (Clojure Hiccup library, similar libraries exist for other lisp-like languages: https://github.com/weavejester/hiccup )
comment by harryvederci · 2021-10-15 · in The Single-Page-App Morality Play -
This would have really benefited from looking over something like clojure’s hiccup: https://github.com/weavejester/hiccup
comment by phyrex · 2021-10-05 · in I created a programming language and this blog is powered by it -
…by combining htmx[1] and hiccup[2] [0] https://github.com/metosin/reitit [1] https://htmx.org/ [2] https://github.com/weavejester/hiccup
comment by harryvederci · 2021-05-01 · in Ask HN: What stack would you use to build a CRUD web app on the JVM today? -
Clojure hiccup: https://github.com/weavejester/hiccup
comment by lenkite · 2021-03-06 · in Zola: A fast static site generator in a single binary -
I'm new to LISP but the way Hiccup ( https://github.com/weavejester/hiccup ) in Clojure allows to embeds HTML in Clojure code feels really powerful.
comment by kehrin · 2021-01-24 · in Ask HN: LISPers, do you use homoiconicity (code-as-data)? -
* Hiccup ( https://github.com/weavejester/hiccup ) - DSL for generating html. You can easily mix it with other language constructs. There are similar libraries for Common Lisp and Scheme. * Compojure-api (…
comment by dig1 · 2020-08-17 · in LFE: Lisp Flavored Erlang -
…classes of tech that are uniquely Clojure: Data driven DSLs: - https://github.com/noprompt/garden - https://github.com/weavejester/hiccup - https://github.com/seancorfield/honeysql Hyper normalised relational databases: -…
comment by slifin · 2020-06-05 · in A History of Clojure [pdf] -
The modern equivalent is Hiccup and Clojure. https://github.com/weavejester/hiccup/wiki/Syntax Clojure has literal lists using parens and vectors using square brackets. By using both you can mix code and markup in a readable way. It's…
comment by mlwiese · 2020-05-13 · in What if we'd had better HTML-in-JS syntax all along? -
The "object" syntax reminds me a lot of Clojure/script's Hiccup ( https://github.com/weavejester/hiccup ) style, which has become a de-facto standard across many popular libraries. In hiccup, this example: { tag: "button", attributes: {…
comment by adambard · 2020-05-11 · in What if we'd had better HTML-in-JS syntax all along? -
…and it's Hiccup-like[2] markup is bliss in this domain. [1] http://reagent-project.github.io/ [2] https://github.com/weavejester/hiccup
comment by kgwxd · 2020-05-11 · in What if we'd had better HTML-in-JS syntax all along? -
…It uses a the same data format as hiccup template library which can be used on server side - https://github.com/weavejester/hiccup That's why the same code can be used on client and server. The simplicity of the process (uses pure…
comment by mateuszf · 2020-03-02 · in Clojure: A Lisp that wants to spread -
This is awesome. Reminds me of Clojure's https://github.com/weavejester/hiccup which blows every template engine I've ever used out of the water.
comment by slightlyCyborg · 2020-01-08 · in Show HN: Bepis – Crazy Format for HTML+CSS in JavaScript -
…2: https://github.com/Day8/re-frame 3: https://github.com/edn-format/edn 4: https://github.com/weavejester/hiccup
comment by fnordsensei · 2019-10-30 · in When XML Beats JSON: UI Layouts -
Basically hiccup: https://github.com/weavejester/hiccup
comment by kickopotomus · 2019-10-30 · in When XML Beats JSON: UI Layouts -
Even easier in Clojurescript using Hiccup https://github.com/weavejester/hiccup to render HTML: (def users [{:firstname "john", :lastname "snow"} {:firstname "Peter", :lastname "drucker"}]) (defn my-view [] [:ul (for [{:keys [firstname…
comment by subsaharancoder · 2019-10-23 · in Elm 0.19.1 -
Next best thing today: https://github.com/weavejester/hiccup#syntax , https://github.com/noprompt/garden#syntax
comment by sooheon · 2019-07-22 · in Show HN: Sinuous – Small, fast, reactive UI library -
This reminds me very much of Hiccup[1]. Both nested s-expressions and HTML describe trees. [1] https://github.com/weavejester/hiccup
comment by notduncansmith · 2019-06-03 · in Major mode for editing SEML (S-Expression Markup Language) files -
…required. [1]: https://github.com/Day8/re-frame [2]: https://github.com/edn-format/edn [3]: https://github.com/weavejester/hiccup/wiki/Syntax
comment by fnordsensei · 2019-05-19 · in Virtual DOM is pure overhead (2018) -
Would anybody mind sharing links to good DSLs? From Clojure I think hiccup is a good example. https://github.com/weavejester/hiccup
comment by greenyouse · 2018-07-18 · in Designing a Good DSL -
…lines, but that's a style thing. [0]: https://docs.racket-lang.org/html-template/index.html . [1]: https://github.com/weavejester/hiccup [2]: https://mustache.github.io/mustache.5.html † Sorry. Couldn't let the typo stand. Heinlein made me…
comment by grzm · 2018-03-30 · in Reddit 1.0 source code -
It's basically hiccup ( https://github.com/weavejester/hiccup ).
comment by masklinn · 2018-01-23 · in Ijk – Transforms arrays into virtual DOM trees -
also hiccup in clojureland, https://github.com/weavejester/hiccup which has an abandoned looking python port: https://github.com/pascience/pyhiccup Thanks, I hadn't seen Breve! I was looking for exactly this a while ago.
comment by zimablue · 2018-01-23 · in Ijk – Transforms arrays into virtual DOM trees -
HTML: https://github.com/weavejester/hiccup CSS: https://github.com/noprompt/garden Javascript: https://github.com/clojure/clojurescript seriously, Clojure is the utopia.
comment by keymone · 2017-10-06 · in Show HN: nEXT Browser – A Lisp-based browser -
…data literals and provides all necessary functions to manipulate it - and that i like. [1] https://github.com/weavejester/hiccup
comment by keymone · 2017-09-01 · in Why we moved from Angular 2 to Vue.js and why we didn’t choose React -
Reminds me of Hiccup's syntax: https://github.com/weavejester/hiccup
comment by 147 · 2016-03-29 · in Show HN: Shaven 1.0.0 -
The simple syntax makes things like Hiccup and macros more convenient. https://github.com/weavejester/hiccup Macros allow things like core.async (like Go's channels), which is just a normal library; you didn't have to upgrade your Clojure…
comment by calibraxis · 2015-08-28 · in Simplicity Matters – Rich Hickey (2012) [video] -
This is a great argument for using hiccup[1] and reagent[2] as well. [1] https://github.com/weavejester/hiccup#syntax [2] http://www.reagent-project.github.io
comment by escherize · 2015-05-16 · in How I learned to stop worrying and love React -
…link, that is interesting. While I don't doubt that it's possible to create something similar to https://github.com/weavejester/hiccup in Ruby and Python as well, I am not aware of existing libraries for it and it's definitely not…
comment by kyllo · 2015-04-22 · in Existential crisis at Railsconf -
Hiccup gives you HTML in Lisp https://github.com/weavejester/hiccup
comment by smizell · 2015-03-11 · in The thing I hate about HTML (2010) -
> representing HTML You may like Clojure's Hiccup: https://github.com/weavejester/hiccup http://www.rkn.io/2014/03/13/clojure-cookbook-hiccup/ These representations underline how anomalous <IMG...>, <BR>, etc are in "standard" HTML.
comment by zwp · 2014-09-22 · in The Roots of Lisp (2002) [pdf] -
In Clojure: https://github.com/weavejester/hiccup https://github.com/cgrand/enlive
comment by arsenerei · 2014-09-09 · in Use Emacs Org-mode Links for Absolutely Anything -
…a non-issue for me, since I use Hiccup[1] for Clojure, which collapses all whitespace for me. [1]: https://github.com/weavejester/hiccup
comment by sdegutis · 2014-02-06 · in A Guide to Basic CSS Layout Structures and Quirks -
…to start, and it bring me to this other comment: https://news.ycombinator.com/item?id=6669854 [1] https://github.com/weavejester/hiccup
comment by siscia · 2013-11-04 · in Show HN: RinohType – A modern LaTeX in 6500 lines of Python -
…or are they parsed/validated/inspectable? Can one work with DOM nodes? (This is what I like about https://github.com/weavejester/hiccup/wiki/Syntax )
comment by wirrbel · 2013-10-27 · in The Slash Programming Language -
Be sure to take a look at hiccup for clojure. https://github.com/weavejester/hiccup
comment by DigitalJack · 2013-03-26 · in Show HN: I'm writing a leanpub book about Common Lisp web programming -
…from there. -- https://github.com/ring-clojure/ring https://github.com/weavejester/compojure https://github.com/weavejester/hiccup https://github.com/cgrand/enlive http://sqlkorma.com/ http://www.clojure-toolbox.com/ is really helpful for…
comment by cgag · 2013-01-09 · in How Lisp is Going to Save the World