<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
{%block title%}
{%endblock%}
</title>
<style type="text/css">
@page {
    size: {{pagesize}};
{% if page_orientation == 'landscape' %} {% include 'landscape.css' %} {% endif %}
{%if page_orientation == 'portrait' %} {% include 'portrait.css' %} {% endif %}
}
</style>
</head>
<body>

{%block content%}
{%endblock%}

</body>
</html>
