Immediately after switching the page, it will work with CSR.
Please reload your browser to see how it works.
Wow!!! Cool to see ERB being embraced and enhanced in this way, I’ll have to check it out
I was thinking about something like this, but with some blend of Jinja2 / Twig / Nunjucks [1] syntax and Svelte/JSX-like use of variables in element attributes:
{% for para in page.body %}
<p class={{ para.class }} {{ **para.attrs }}>
{{ para.text }}
</p>
{% endfor %}
---[1]: the irony is not lost on me that I’m mentioning Python, PHP and JS template engines in a Ruby discussion :-) Liquid is the closest equivalent I think, but there was some crucial piece missing last time I had to use it, though I can’t remember what exactly.
I realize this is new, but as tools start using herb, it would nice to link to those tools from the herb website and or github readme.