Skip to content

Commit

Permalink
Renamed the project to django-templatetag-sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Nov 8, 2009
1 parent c993c99 commit 4a9676e
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -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::

Expand Down
1 change: 0 additions & 1 deletion kickass_templatetags/tests/__init__.py

This file was deleted.

6 changes: 0 additions & 6 deletions kickass_templatetags/tests/settings.py

This file was deleted.

8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion kickass_templatetags/node.py → templatetag_sugar/node.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from kickass_templatetags.parser import Parser
from templatetag_sugar.parser import Parser


def tag(register, syntax, name=None):
Expand Down
1 change: 1 addition & 0 deletions templatetag_sugar/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from templatetag_sugar.tests.tests import SugarTestCase
File renamed without changes.
6 changes: 6 additions & 0 deletions templatetag_sugar/tests/settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DATABASE_ENGINE = 'sqlite3'

INSTALLED_APPS = [
"templatetag_sugar",
"templatetag_sugar.tests",
]
Original file line number Diff line number Diff line change
@@ -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()

Expand Down
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit 4a9676e

Please sign in to comment.