load js at the end of the page

This commit is contained in:
Rodney Ewing 2013-08-16 11:49:33 -07:00
parent fb2f2bece2
commit e7c08e3550
4 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ def setup_plugin():
pluginapi.register_routes(routes)
pluginapi.register_template_path(os.path.join(PLUGIN_DIR, 'templates'))
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',
'edit_link': 'mediagoblin/plugins/persona/edit_link.html',
'login_link': 'mediagoblin/plugins/persona/login_link.html',

View File

@ -47,8 +47,6 @@
{% include "mediagoblin/extra_head.html" %}
{% template_hook("head") %}
{% template_hook("persona_head") %}
{% block mediagoblin_head %}
{% endblock mediagoblin_head %}
</head>

View File

@ -15,3 +15,5 @@
# 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/>.
-#}
{% template_hook("persona_end") %}