Skip to content
Snippets Groups Projects
Unverified Commit f0f08d03 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix tag code.

parent 77f0ee5e
No related branches found
No related tags found
No related merge requests found
from django import template
from django.conf import settings
from django.template import loader, Context
from django.template import loader
register = template.Library()
......@@ -10,7 +10,7 @@ def include_js(name):
js_url = settings.ANY_JS[name]['js_url']
template = loader.get_template('django_any_js/js.html')
context = Context({'js_url': js_url})
context = {'js_url': js_url}
return template.render(context)
......@@ -20,6 +20,6 @@ def include_css(name):
css_url = settings.ANY_JS[name]['css_url']
template = loader.get_template('django_any_js/css.html')
context = Context({'css_url': css_url})
context = {'css_url': css_url}
return template.render(context)
......@@ -5,7 +5,7 @@ MYDIR = os.path.dirname(__file__)
setup(
name='django-any-js',
version='1.0.2',
version='1.0.3',
keywords=['django', 'javascript'],
description='Include JavaScript libraries with readable template tags',
long_description=open(os.path.join(MYDIR, "README.rst"),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment