Hacker GitHub

← All repos

yawaramin/dream-html

View on GitHub ↗ ★ 208 OCaml

Type-safe markup rendering, form validation, and routing for OCaml Dream web framework

14 mentions on Hacker News by 2 people: 1 story, 13 comments · first 2023-04-26 · latest 2025-12-21

Mentions per year 14 mentions · busiest year 2023 (5)
20082026
  1. …not great at this. Django just recently introduced a 'partial templates' feature. I built my own: https://github.com/yawaramin/dream-html/blob/todoapp/app/REA...
    comment by yawaramin · 2025-12-21 · in Please just try HTMX
  2. …htmx an HTML library that's embedded directly in your programming language is much more powerful. https://github.com/yawaramin/dream-html/blob/f7928616b9ca1d6...
    comment by yawaramin · 2025-10-11 · in I switched from Htmx to Datastar
  3. Htmx doesn't preclude a component model for the UI. See: - https://www.fastht.ml/ - https://github.com/yawaramin/dream-html/tree/todoapp/app In fact if you look at how htmx is recommended to be used, you realize they specifically are…
    comment by yawaramin · 2025-07-03 · in Locality of Behaviour (2020)
  4. …together *) null [ thank_you_fragment; announce "Your purchase has been successful!"; ] ) [1] https://github.com/yawaramin/dream-html
    comment by yawaramin · 2025-01-08 · in The Future of Htmx
  5. …templates and routing. I strongly agree with that and created a library to help with those aspects: https://github.com/yawaramin/dream-html?tab=readme-ov-file#f...
    comment by yawaramin · 2025-01-07 · in The Future of Htmx
  6. …to do with static typing. However, it's fairly easy to add a statically-typed layer on top of it eg https://github.com/yawaramin/dream-html
    comment by yawaramin · 2024-06-21 · in Hypermedia Systems
  7. …abstractions much like you would in React. I show an example of this with my own library: https://github.com/yawaramin/dream-html/tree/todoapp/app
  8. ▲ 22
    Dream-HTML – render HTML, SVG, MathML, Htmx markup from OCaml
    story by todsacerdoti · 2024-04-30 · 6 comments
  9. …citizen of your language's constructs, rather than a templated afterthought. I have a demo of this: https://github.com/yawaramin/dream-html/tree/todoapp/app
  10. …in the programming language. E.g. ScalaTags https://com-lihaoyi.github.io/scalatags/ or (my own) https://github.com/yawaramin/dream-html Yes, you give up the ability of designers and frontend-only people to easily work with the HTML…
    comment by yawaramin · 2023-09-22 · in Second-Guessing the Modern Web (2020)
  11. …that embed HTML directly in the language. E.g. https://com-lihaoyi.github.io/scalatags/ or (my own) https://github.com/yawaramin/dream-html They make writing HTML a breeze with the full power of the programming language available. > We…
    comment by yawaramin · 2023-09-22 · in Second-Guessing the Modern Web (2020)
  12. …try it with dream-html, a library I wrote for expressing HTML directly in the language: https://github.com/yawaramin/dream-html (or some similar library).
    comment by yawaramin · 2023-09-22 · in Second-Guessing the Modern Web (2020)
  13. …A lot of the issues you raise are the impetus behind the way I designed my HTML-generation DSL: https://github.com/yawaramin/dream-html
  14. Look at this code which prints out an HTML tag: https://github.com/yawaramin/dream-html/blob/main/lib/dream_... Initially you might think generating HTML tags from data structures in code should be a simple matter. But there are…
    comment by yawaramin · 2023-04-26 · in My thoughts on OCaml