diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-01-30 13:25:08 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-01-30 13:25:20 -0600 |
commit | f097cf648c6f9d322a78bfbf3a677488ff495915 (patch) | |
tree | f1e3b984c78bcfb63504c3266eb81f9c9c3bfca5 /mediagoblin/tools/pluginapi.py | |
parent | 08f3966d543386ec2a8696edd40148b43d474e27 (diff) | |
download | mediagoblin-f097cf648c6f9d322a78bfbf3a677488ff495915.tar.lz mediagoblin-f097cf648c6f9d322a78bfbf3a677488ff495915.tar.xz mediagoblin-f097cf648c6f9d322a78bfbf3a677488ff495915.zip |
Improved documentation for get_hook_templates, noting the template tag
Diffstat (limited to 'mediagoblin/tools/pluginapi.py')
-rw-r--r-- | mediagoblin/tools/pluginapi.py | 9 |
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) |