From f6d1d28d455d4cd84e55f7979667f57f64481b0b Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sun, 24 Feb 2013 12:33:39 -0600 Subject: [PATCH] extra_head template hook. This will allow plugins to add extra js/css more easily. This commit sponsored by Moritz Berberich. Thank you! --- mediagoblin/templates/mediagoblin/base.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index 3c8a26bc..36bb4c62 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -36,7 +36,14 @@ + {# For clarification, the difference between the extra_head.html template + # and the extra_head template hook is that the former should be used by + # themes and the latter should be used by plugins. + # The reason is that only one thing can override extra_head.html... + # but multiple plugins can hook into the template hook. + #} {% include "mediagoblin/extra_head.html" %} + {% template_hook("extra_head") %} {% block mediagoblin_head %} {% endblock mediagoblin_head %} -- 2.25.1