load js at the end of the page
This commit is contained in:
parent
fb2f2bece2
commit
e7c08e3550
@ -48,7 +48,7 @@ def setup_plugin():
|
|||||||
pluginapi.register_routes(routes)
|
pluginapi.register_routes(routes)
|
||||||
pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates'))
|
pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates'))
|
||||||
pluginapi.register_template_hooks(
|
pluginapi.register_template_hooks(
|
||||||
{'persona_head': 'mediagoblin/plugins/persona/persona_js_head.html',
|
{'persona_end': 'mediagoblin/plugins/persona/persona_js_end.html',
|
||||||
'persona_form': 'mediagoblin/plugins/persona/persona.html',
|
'persona_form': 'mediagoblin/plugins/persona/persona.html',
|
||||||
'edit_link': 'mediagoblin/plugins/persona/edit_link.html',
|
'edit_link': 'mediagoblin/plugins/persona/edit_link.html',
|
||||||
'login_link': 'mediagoblin/plugins/persona/login_link.html',
|
'login_link': 'mediagoblin/plugins/persona/login_link.html',
|
||||||
|
@ -47,8 +47,6 @@
|
|||||||
{% include "mediagoblin/extra_head.html" %}
|
{% include "mediagoblin/extra_head.html" %}
|
||||||
{% template_hook("head") %}
|
{% template_hook("head") %}
|
||||||
|
|
||||||
{% template_hook("persona_head") %}
|
|
||||||
|
|
||||||
{% block mediagoblin_head %}
|
{% block mediagoblin_head %}
|
||||||
{% endblock mediagoblin_head %}
|
{% endblock mediagoblin_head %}
|
||||||
</head>
|
</head>
|
||||||
|
@ -15,3 +15,5 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
-#}
|
-#}
|
||||||
|
|
||||||
|
{% template_hook("persona_end") %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user