projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a7e4b4
)
Fix plugin documentation
author
Sebastian Spaeth
<Sebastian@SSpaeth.de>
Wed, 4 Sep 2013 09:35:39 +0000
(11:35 +0200)
committer
Sebastian Spaeth
<Sebastian@SSpaeth.de>
Wed, 4 Sep 2013 09:35:39 +0000
(11:35 +0200)
The docs suggest to use {% template_hook "media_sidebar" %}. This
will break Mediagoblin in mysterious ways, and the docs need a fix.
mediagoblin/tools/pluginapi.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tools/pluginapi.py
b/mediagoblin/tools/pluginapi.py
index 3f98aa8a5f751415f3f181658c4bb1dfe23d1b5a..1eabe9f12d9fffcf4b3a3b8b6cc34c3101d1d565 100644
(file)
--- a/
mediagoblin/tools/pluginapi.py
+++ b/
mediagoblin/tools/pluginapi.py
@@
-252,7
+252,7
@@
def get_hook_templates(hook_name):
.. code-block:: html+jinja
- {% template_hook
"media_sidebar"
%}
+ {% template_hook
("media_sidebar")
%}
... which will include all templates for you, partly using this
method.