Using HEEx as a templating language like Handlebars

I would like to use HEEx as a templating library independent of LiveView. Basically, I want something like Handlebars. However, all the examples in the docs show a tight integration between HEEx and conn/assigns to render directly to the LiveView or as part of an HTML response.

I would instead like to use it like:

html = get_results("path/to/heex/file", %{"someContextVar" => "my value"})

Is this possible?

Checkout out EExHTML – eex_html v1.0.0

1 Like

Alternatively, check out Overview — solid v0.15.2

1 Like