mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
update functional tests to test TEMPLATE_PAGES feature
closes #614: cannot reproduce this issue.
This commit is contained in:
parent
6236e8f66b
commit
f604cc4df8
3 changed files with 91 additions and 0 deletions
6
samples/content/pages/jinja2_template.html
Normal file
6
samples/content/pages/jinja2_template.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
|
||||
Some text
|
||||
|
||||
{% endblock %}
|
||||
|
|
@ -35,6 +35,9 @@ STATIC_PATHS = ["pictures", ]
|
|||
# A list of files to copy from the source to the destination
|
||||
FILES_TO_COPY = (('extra/robots.txt', 'robots.txt'),)
|
||||
|
||||
# custom page generated with a jinja2 template
|
||||
TEMPLATE_PAGES = {'pages/jinja2_template.html': 'jinja2_template.html'}
|
||||
|
||||
# foobar will not be used, because it's not in caps. All configuration keys
|
||||
# have to be in caps
|
||||
foobar = "barbaz"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue