From b242657df763cc63b79df109eccf91f276c8bb93 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 25 May 2017 20:36:23 +0100 Subject: [PATCH] Add render date to context --- md_pdf/build/context.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/md_pdf/build/context.py b/md_pdf/build/context.py index 0a6d127..36ad500 100644 --- a/md_pdf/build/context.py +++ b/md_pdf/build/context.py @@ -1,11 +1,13 @@ from md_pdf.consts import TEMPLATES_DIR, STATIC_DIR from word_count import word_count from md_pdf.utils import get_plain_text +from datetime import datetime EXTRA_CONTEXT = { 'templates_dir': TEMPLATES_DIR, - 'static_dir': STATIC_DIR + 'static_dir': STATIC_DIR, + 'date': datetime.now() }