All modules are now plugins. The config.py calls load_plugin for each plugin it needs (some plugins may load others automatically). Also each plugin keeps its own template folder which gets added to the template search path, so i.e. if the photo plugin is unloaded completely, the URL endpoints won't work either (with the old system, since the HTML templates still existed in the default root the endpoints would still serve pages, just without any Python logic behind them).
13 lines
299 B
HTML
13 lines
299 B
HTML
{% from "blog/entry.inc.html" import blog_entry %}
|
|
|
|
{% include "blog/nav-links.inc.html" %}
|
|
|
|
{% if count == 0 %}
|
|
There are no blog posts yet.
|
|
{% else %}
|
|
{% for post in posts %}
|
|
{{ blog_entry(post, from="index") }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% include "blog/nav-links.inc.html" %} |