Permalink
Browse files

Renamed the project to django-templatetag-sugar

  • Loading branch information...
alex committed Nov 8, 2009
1 parent c993c99 commit 4a9676e32c71f77b4cd5be237bea2865ba492bc2
View
@@ -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::
@@ -1 +0,0 @@
-from kickass_templatetags.tests.tests import KickassTestCase
@@ -1,6 +0,0 @@
-DATABASE_ENGINE = 'sqlite3'
-
-INSTALLED_APPS = [
- "kickass_templatetags",
- "kickass_templatetags.tests",
-]
View
@@ -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",
File renamed without changes.
File renamed without changes.
@@ -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
@@ -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):
@@ -1,4 +1,4 @@
-from kickass_templatetags.parser import Parser
+from templatetag_sugar.parser import Parser
def tag(register, syntax, name=None):
@@ -0,0 +1 @@
+from templatetag_sugar.tests.tests import SugarTestCase
@@ -0,0 +1,6 @@
+DATABASE_ENGINE = 'sqlite3'
+
+INSTALLED_APPS = [
+ "templatetag_sugar",
+ "templatetag_sugar.tests",
+]
@@ -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()
@@ -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")

0 comments on commit 4a9676e

Please sign in to comment.