Hello :wave:
Does Roc have built in templating that can be used for creating HTML for HTTP servers?
Or is there a good library for this?
Rocky said:
Hello :wave:
Does Roc have built in templating that can be used for creating HTML for HTTP servers?
That, is something I cannot answer better than a LLM.
Also I feel you should move this to a new topic. You might got confused by Zulip layout. You are replying to a existed topic under 'Beginners' rather than posting a new one.
3 messages were moved here from #beginners > Extra copies in generated code for a equivalent rewrite by Anton.
Hi @Rocky,
There is rocstache, I think it is inseparable from roux though.
There is also https://github.com/isaacvando/rtl but that one is not up to date with current Roc.
roc-html uses a slightly different approach but it may still suit your needs, it also needs to be updated though.
There is also joy-html.
If you are looking to make your own server platform, Anton is right, Rocstache templating is tied to the roux platform.
But, if you are looking to make a webapp, consider trying roux. It includes typed db queries+migrations, and fully typed Roc-flavored templates, as well as SSE support. It is tuned for dynamic HTML as well as hypermedia style AJAX e.g. htmx or datastar.
Its super fast: (benchmark) and we have an on boarding tutorial here: https://github.com/Eldhus/roux-tutor
Last updated: Nov 04 2026 at 18:54 UTC