aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/pluginapi.py
diff options
context:
space:
mode:
Diffstat (limited to 'mediagoblin/tools/pluginapi.py')
-rw-r--r--mediagoblin/tools/pluginapi.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mediagoblin/tools/pluginapi.py b/mediagoblin/tools/pluginapi.py
index 1f28690e..5794bf63 100644
--- a/mediagoblin/tools/pluginapi.py
+++ b/mediagoblin/tools/pluginapi.py
@@ -244,7 +244,16 @@ def get_hook_templates(hook_name):
"""
Get a list of hook templates for this hook_name.
+ Note: for the most part, you access this via a template tag, not
+ this method directly, like so:
+
+ {% template_hook "media_sidebar" %}
+
+ ... which will include all templates for you, partly using this
+ method.
+
Returns:
A list of strings representing template paths.
+
"""
return PluginManager().get_template_hooks(hook_name)