From 36aeeb799fac1fc18a00ab8cfc989a6e0d550d58 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Mon, 24 Apr 2017 10:37:32 +1200 Subject: [PATCH] Port base template to jinja2 Django looks in the jinja2 subdirectory, so this should work out of the box with the jinja2 template engine, if APP_DIRS is set to true in the template settings --- easy_pdf/jinja2/easy_pdf/base.html | 60 ++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 easy_pdf/jinja2/easy_pdf/base.html diff --git a/easy_pdf/jinja2/easy_pdf/base.html b/easy_pdf/jinja2/easy_pdf/base.html new file mode 100644 index 0000000..bad2cd8 --- /dev/null +++ b/easy_pdf/jinja2/easy_pdf/base.html @@ -0,0 +1,60 @@ +{# jinja port of built-in django template #} + + + + {{ title or "" }} + + {% block style_base %} + {# + See DEFAULT_CSS in https://github.com/chrisglass/xhtml2pdf/blob/master/xhtml2pdf/default.py + for base style. + #} + + {% block layout_style %} + + {%endblock%} + {% block extra_style %}{% endblock %} + {% endblock %} + + +
+ {%block page_header%} + {%endblock%} + + {%block content%} + {%endblock%} +
+ + + +