-
Notifications
You must be signed in to change notification settings - Fork 2k
/
page.html
31 lines (28 loc) · 985 Bytes
/
page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<xi:include href="base.html" />
<body py:match="body">
<!--! Import the header -->
<xi:include href="header.html" />
<div role="main">
<div class="container">
<div class="primary" py:attrs="select('primary/@*')">
${select('primary')}
</div>
<!--! Need an py:if here to exclude if empty. -->
<div class="secondary" py:attrs="select('secondary/@*')">
${select('secondary')}
</div>
</div>
</div>
<!--! Import the footer -->
<xi:include href="footer.html" />
</body>
<!--! Ensure the content tags are never included in the page. -->
<div py:match="primary" py:strip="" py:content="select('*|text()')" />
<div py:match="secondary" py:strip="" py:content="select('*|text()')" />
</html>