diff options
author | Marian Sigler <m@qjym.de> | 2012-09-29 18:08:10 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-29 18:08:10 +0200 |
commit | bc0d34f4400ab6e95f799ba106b1338dde66bb10 (patch) | |
tree | 211e6582c09b50f9fce91ad8507af2451ded57f2 /templates/base.html | |
parent | 4df259ad5530de1167e236e529f46ecd86c63273 (diff) | |
download | web-bc0d34f4400ab6e95f799ba106b1338dde66bb10.tar.gz web-bc0d34f4400ab6e95f799ba106b1338dde66bb10.tar.bz2 web-bc0d34f4400ab6e95f799ba106b1338dde66bb10.zip |
only show js block on page if one is set
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index 39b76aa..1792410 100644 --- a/templates/base.html +++ b/templates/base.html @@ -60,8 +60,10 @@ {% block content %}{% endblock %} </section> + {%- if javascript %} <script type="text/javascript"> - {% block javascript %}{% endblock %} + {%- block javascript %}{% endblock -%} </script> + {%- endif %} </body> </html> |