Permalink
Browse files

Allow pages to add own scripts/styles

  • Loading branch information...
1 parent b43542f commit 4b612912641c860a65ca397c9e9e852f9f58e26d @gordonbrander committed Apr 15, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 templates/base.html
View
@@ -16,6 +16,9 @@
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="/vendor/normalize.css">
+ {% for url in page.styles %}
+ <link rel="stylesheet" href="{{ url }}">
+ {% endfor %}
{% endblock %}
</head>
<body>
@@ -27,6 +30,9 @@
{% block footer %}
{% endblock %}
{% block scripts %}
+ {% for url in page.scripts %}
+ <script type="text/javascript" src="{{ url }}"></script>
+ {% endfor %}
{% endblock %}
</body>
</html>

0 comments on commit 4b61291

Please sign in to comment.