From f097cf648c6f9d322a78bfbf3a677488ff495915 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 30 Jan 2013 13:25:08 -0600 Subject: [PATCH] Improved documentation for get_hook_templates, noting the template tag --- mediagoblin/tools/pluginapi.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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)