Hacker GitHub

← All repos

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

Mentions per year 64 mentions · busiest year 2012 (11)
20082026
  1. …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…
  2. similar library: https://github.com/weavejester/hiccup
  3. …[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
  4. …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
  5. 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…
  6. …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
  7. Like this amirite https://github.com/weavejester/hiccup
    comment by KRAKRISMOTT · 2023-08-30 · in Produce HTML from S-Expressions
  8. …( 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]
  9. …syntax is flexible/simple enough to make generating HTML in a structured way the natural solution. https://github.com/weavejester/hiccup
  10. 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…
  11. You’re halfway to Clojure’s hiccup syntax[1] there. [1]: https://github.com/weavejester/hiccup/blob/master/doc/syntax...
  12. 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
  13. …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
  14. This would have really benefited from looking over something like clojure’s hiccup: https://github.com/weavejester/hiccup
  15. …by combining htmx[1] and hiccup[2] [0] https://github.com/metosin/reitit [1] https://htmx.org/ [2] https://github.com/weavejester/hiccup
  16. Clojure hiccup: https://github.com/weavejester/hiccup
  17. 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.
  18. * 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
  19. …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]
  20. 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…
  21. 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: {…
  22. …and it's Hiccup-like[2] markup is bliss in this domain. [1] http://reagent-project.github.io/ [2] https://github.com/weavejester/hiccup
  23. …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
  24. 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.
  25. …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
  26. Basically hiccup: https://github.com/weavejester/hiccup
    comment by kickopotomus · 2019-10-30 · in When XML Beats JSON: UI Layouts
  27. 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
  28. Next best thing today: https://github.com/weavejester/hiccup#syntax , https://github.com/noprompt/garden#syntax
  29. This reminds me very much of Hiccup[1]. Both nested s-expressions and HTML describe trees. [1] https://github.com/weavejester/hiccup
  30. …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)
  31. 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
  32. …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
  33. It's basically hiccup ( https://github.com/weavejester/hiccup ).
  34. 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.
  35. HTML: https://github.com/weavejester/hiccup CSS: https://github.com/noprompt/garden Javascript: https://github.com/clojure/clojurescript seriously, Clojure is the utopia.
  36. …data literals and provides all necessary functions to manipulate it - and that i like. [1] https://github.com/weavejester/hiccup
  37. Reminds me of Hiccup's syntax: https://github.com/weavejester/hiccup
    comment by 147 · 2016-03-29 · in Show HN: Shaven 1.0.0
  38. 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…
  39. 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
  40. …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
  41. 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)
  42. > 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]
  43. In Clojure: https://github.com/weavejester/hiccup https://github.com/cgrand/enlive
  44. …a non-issue for me, since I use Hiccup[1] for Clojure, which collapses all whitespace for me. [1]: https://github.com/weavejester/hiccup
  45. …to start, and it bring me to this other comment: https://news.ycombinator.com/item?id=6669854 [1] https://github.com/weavejester/hiccup
  46. …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
  47. Be sure to take a look at hiccup for clojure. https://github.com/weavejester/hiccup
  48. …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
  49. https://github.com/weavejester/hiccup
    comment by codewright · 2012-12-27 · in CoffeeKup is markup as CoffeeScript
  50. …and in Common Lisp... * CL-WHO - http://weitz.de/cl-who/ and in Clojure... Hiccup - https://github.com/weavejester/hiccup