I'm not seeing any ERB here. Whatever blend you came up with could be done in ERB which just combines Ruby with HTML.

Template engines like liquid are good for simpler use cases where you'd want your end users to write templates (who aren't programmers)

Yeah, that’s intentional — I think having a clear separation between templates and code is a good thing. Regardless, you can use most of Python syntax in Jinja2 (and in my interpretation too, of course).

And no, it’s not only good for simple use cases. Template inheritnace alone is a killer feature for bigger projects: https://jinja.palletsprojects.com/en/stable/templates/#templ...