You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yields an XMLTemplateParseError. This is perfectly correct since the < is a reserves letter in XML. Realizing that, the solution is as simple as replacing < with <.
In doing so I get:
print(Template(dict(title='Kajiki is teh awesome!', x=1)).render())
<html><body>
<div>Kajiki is teh awesome!</div>
</body></html>
The text was updated successfully, but these errors were encountered:
Hi,
after searching for a while I found the solution my self. However, I believe this should make it to the docs.
I was struggling with implementing a
py:if
comparison likex < 2
. The naive wayyields an
XMLTemplateParseError
. This is perfectly correct since the<
is a reserves letter in XML. Realizing that, the solution is as simple as replacing<
with<
.In doing so I get:
The text was updated successfully, but these errors were encountered: