Special Syntax to format href paths with html escaping guarantees
johannescpk opened this issue · 0 comments
johannescpk commented
Something like
href={%path "uwu" / &some_var / "owo" %}
or
href={%path ["uwu", &some_var, "owo"] %}
or
href={%path "uwu/{&some_var}/owo" %} (this would probably get complicated)
which makes sure to internally correctly escape the path with html_escape::encode_text
or html_escape::encode_double_quoted_attribute
Might also work to special-case the occurence of href
and then do something special, e.g.
href="uwu/{&some_var}/owo"
could automagically do the right thing - tho I think that's way to implicit/hidden.