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
20082026
-
…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 -
…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 -
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) -
…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 -
…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 -
…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 -
…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
comment by yawaramin · 2024-05-22 · in Ask HN: Why do you all think that Htmx is such a recent development? -
▲ 22
Dream-HTML – render HTML, SVG, MathML, Htmx markup from OCamlstory by todsacerdoti · 2024-04-30 · 6 comments
-
…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
comment by yawaramin · 2024-04-25 · in A Response to "Have Single-Page Apps Ruined the Web?" (2021) -
…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) -
…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) -
…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) -
…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
comment by yawaramin · 2023-05-27 · in That people produce HTML with string templates is telling us something -
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