Skip to content

Commit

Permalink
Merge pull request #1333 from okfn/1333-html-comment
Browse files Browse the repository at this point in the history
Misleading HTML comment about scripts in base.html template
  • Loading branch information
kindly committed Nov 28, 2013
2 parents fb0fcf1 + 672416c commit c4118d2
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions ckan/templates/base.html
Expand Up @@ -102,17 +102,9 @@
{%- block page %}{% endblock -%}

{#
The scripts block allows you to add additonal scripts to the page. Use the
super() function to load the default scripts before/after your own.
NOTE: Scripts should be loaded by the {% resource %} tag except
in very special circumstances DO NOT USE THIS METHOD FOR ADDING SCRIPTS.

Example:

{% block scripts %}
{{ super() }}
<script src="/base/js/custom.js"></script>
{% endblock %}
DO NOT USE THIS BLOCK FOR ADDING SCRIPTS
Scripts should be loaded by the {% resource %} tag except in very special
circumstances
#}
{%- block scripts %}
{% endblock -%}
Expand Down

0 comments on commit c4118d2

Please sign in to comment.