When upgrading the frontend for these webpages to flask, it will be important for everyone to know what's going on with these xhtml files.
xmlns="http://www.w3.org/1999/xhtml: declares it as xhtml file, this is only required for html4.xmlns:py="http://genshi.edgewall.org/: this is used to parse xml with python read this article for more info (this link has a bunch of syntax examples for python in xml).- this gives access to python directives bound with
py- for example:
<div py:if="foo"> <p>bar</p> </div>- this will parse truthiness of foo and then render the paragraph that reads 'bar'
xi:include href="../templates/master.html/" />works similar to"{% extends layout.html %}syntax in flask/jinja