Stream: beginners

Topic: HTML templating


view this post on Zulip Rocky (Nov 03 2026 at 21:52):

Hello :wave:
Does Roc have built in templating that can be used for creating HTML for HTTP servers?

view this post on Zulip Rocky (Nov 03 2026 at 21:53):

Or is there a good library for this?

view this post on Zulip zhen (Nov 03 2026 at 21:56):

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.

view this post on Zulip Notification Bot (Nov 04 2026 at 07:37):

3 messages were moved here from #beginners > Extra copies in generated code for a equivalent rewrite by Anton.

view this post on Zulip Anton (Nov 04 2026 at 08:00):

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.

view this post on Zulip notramo (Nov 04 2026 at 10:55):

There is also joy-html.

view this post on Zulip Zak Kohler (Nov 04 2026 at 16:50):

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