Improved documentation for get_hook_templates, noting the template tag

This commit is contained in:
Christopher Allan Webber 2013-01-30 13:25:08 -06:00
parent 08f3966d54
commit f097cf648c

View File

@ -244,7 +244,16 @@ def get_hook_templates(hook_name):
""" """
Get a list of hook templates for this 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: Returns:
A list of strings representing template paths. A list of strings representing template paths.
""" """
return PluginManager().get_template_hooks(hook_name) return PluginManager().get_template_hooks(hook_name)