Add render date to context

This commit is contained in:
Jake Howard 2017-05-25 20:36:23 +01:00
parent 6f8aa6ee09
commit b242657df7

View file

@ -1,11 +1,13 @@
from md_pdf.consts import TEMPLATES_DIR, STATIC_DIR from md_pdf.consts import TEMPLATES_DIR, STATIC_DIR
from word_count import word_count from word_count import word_count
from md_pdf.utils import get_plain_text from md_pdf.utils import get_plain_text
from datetime import datetime
EXTRA_CONTEXT = { EXTRA_CONTEXT = {
'templates_dir': TEMPLATES_DIR, 'templates_dir': TEMPLATES_DIR,
'static_dir': STATIC_DIR 'static_dir': STATIC_DIR,
'date': datetime.now()
} }