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).
17 rivejä
473 B
HTML
17 rivejä
473 B
HTML
{% extends "layout.html" %}
|
|
{% block title %}Delete Entry{% endblock %}
|
|
{% block content %}
|
|
|
|
<h1>Delete Entry</h1>
|
|
|
|
<form name="editor" action="{{ url_for('blog.delete', id=post_id) }}" method="POST">
|
|
<input type="hidden" name="token" value="{{ csrf_token() }}">
|
|
<input type="hidden" name="confirm" value="true">
|
|
|
|
Are you sure you want to delete the blog post,
|
|
"{{ subject }}"?<p>
|
|
|
|
<button type="submit">Confirm Deletion</button>
|
|
</form>
|
|
|
|
{% endblock %} |