Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Renamed the project to django-templatetag-sugar

  • Loading branch information...
commit 4a9676e32c71f77b4cd5be237bea2865ba492bc2 1 parent c993c99
@alex authored
View
2  LICENSE
@@ -11,7 +11,7 @@ are permitted provided that the following conditions are met:
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- 3. Neither the name of django-kickass-templatetags nor the names of its
+ 3. Neither the name of django-templatetag-sugar nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
View
4 README
@@ -1,7 +1,7 @@
-django-kickass-templatetags
+django-templatetag-sugar
===========================
-A library to make writing templatetags in Django kick ass.
+A library to make writing templatetags in Django sweet.
Here's an example of using::
View
1  kickass_templatetags/tests/__init__.py
@@ -1 +0,0 @@
-from kickass_templatetags.tests.tests import KickassTestCase
View
6 kickass_templatetags/tests/settings.py
@@ -1,6 +0,0 @@
-DATABASE_ENGINE = 'sqlite3'
-
-INSTALLED_APPS = [
- "kickass_templatetags",
- "kickass_templatetags.tests",
-]
View
8 setup.py
@@ -2,16 +2,16 @@
setup(
- name = "django-kickass-templatetags",
- version = __import__("kickass_templatetags").__version__,
+ name = "django-templatetag-sugar",
+ version = __import__("templatetag_sugar").__version__,
author = "Alex Gaynor",
author_email = "alex.gaynor@gmail.com",
- description = "A library to make Django's template tags kick ass.",
+ description = "A library to make Django's template tags sweet.",
long_description = open("README").read(),
license = "BSD",
url = "http://github.com/alex/django-kickass-templatetags/",
packages = [
- "kickass_templatetags",
+ "templatetag_sugar",
],
classifiers = [
"Development Status :: 3 - Alpha",
View
0  kickass_templatetags/__init__.py → templatetag_sugar/__init__.py
File renamed without changes
View
0  kickass_templatetags/models.py → templatetag_sugar/models.py
File renamed without changes
View
2  kickass_templatetags/node.py → templatetag_sugar/node.py
@@ -1,7 +1,7 @@
from django.template import Node
-class KickassNode(Node):
+class SugarNode(Node):
def __init__(self, pieces, function):
self.pieces = pieces
self.function = function
View
4 kickass_templatetags/parser.py → templatetag_sugar/parser.py
@@ -4,7 +4,7 @@
from django.db.models.loading import cache
from django.template import TemplateSyntaxError
-from kickass_templatetags.node import KickassNode
+from templatetag_sugar.node import SugarNode
class Parser(object):
@@ -26,7 +26,7 @@ def __call__(self, parser, token):
pieces.extend(result)
if bits:
raise TemplateSyntaxError("You didn't eat all the bits")
- return KickassNode(pieces, self.function)
+ return SugarNode(pieces, self.function)
class Parsable(object):
View
2  kickass_templatetags/register.py → templatetag_sugar/register.py
@@ -1,4 +1,4 @@
-from kickass_templatetags.parser import Parser
+from templatetag_sugar.parser import Parser
def tag(register, syntax, name=None):
View
1  templatetag_sugar/tests/__init__.py
@@ -0,0 +1 @@
+from templatetag_sugar.tests.tests import SugarTestCase
View
0  kickass_templatetags/tests/models.py → templatetag_sugar/tests/models.py
File renamed without changes
View
6 templatetag_sugar/tests/settings.py
@@ -0,0 +1,6 @@
+DATABASE_ENGINE = 'sqlite3'
+
+INSTALLED_APPS = [
+ "templatetag_sugar",
+ "templatetag_sugar.tests",
+]
View
0  kickass_templatetags/tests/templatetags/__init__.py → templatetag_sugar/tests/templatetags/__init__.py
File renamed without changes
View
4 kickass_templatetags/tests/templatetags/test_tags.py → templatetag_sugar/tests/templatetags/test_tags.py
@@ -1,7 +1,7 @@
from django import template
-from kickass_templatetags.register import tag
-from kickass_templatetags.parser import Name, Variable, Constant, Optional, Model
+from templatetag_sugar.register import tag
+from templatetag_sugar.parser import Name, Variable, Constant, Optional, Model
register = template.Library()
View
4 kickass_templatetags/tests/tests.py → templatetag_sugar/tests/tests.py
@@ -1,10 +1,10 @@
from django.template import Template, Context
from django.test import TestCase
-from kickass_templatetags.tests.models import Book
+from templatetag_sugar.tests.models import Book
-class KickassTestCase(TestCase):
+class SugarTestCase(TestCase):
def test_basic(self):
tmpl = Template("""{% load test_tags %}{% test_tag_1 for "alex" %}""")
self.assertEqual(tmpl.render(Context()), "alex")
Please sign in to comment.
Something went wrong with that request. Please try again.