not PHP :)

`html+jinja` might do the trick?