Skip to content

Commit

Permalink
OK, the last commit didn't solve it. This one does. Now including tag…
Browse files Browse the repository at this point in the history
…s and filters
  • Loading branch information
gerardo-orozco committed Dec 13, 2012
1 parent ddd2165 commit e833645
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Just a collection of useful template tags and filters gathered in a single app.

## Index

- [Instalation](#instalation)
- [Contributing](#contributing)
- [Usage](#usage)
- [Tags](#tags)
- [Filters](#filters)

## Instalation

Via pip:
Expand All @@ -17,6 +25,13 @@ Clonning the project:
$ git clone git://github.com/gerardo-orozco/django-template-utils.git
$ python django-template-utils/setup.py install

Add the app to your istalled apps:

INSTALLED_APPS = (
...
'template_utils',
...
)
## Contributing

You have an idea of a useful tag or filter? Marvelous, your contribution will be very appreciated.
Expand All @@ -25,7 +40,11 @@ Please refer to the [Contributing](https://github.com/gerardo-orozco/django-temp

## Usage

### Templatetags
### Tags

First load the tags inside whatever templates you are going to use them:

{% load templateutils_tags %}

#### active_url

Expand Down Expand Up @@ -82,6 +101,10 @@ Produces:

### Filters

Load the filters inside whatever templates you are going to use them:

{% load templateutils_filters %}

#### currency

Returns value represented as currency for the give locale.
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from setuptools import setup
from setuptools import setup, find_packages

README = open(os.path.join(os.path.dirname(__file__), 'README.md')).read()

Expand All @@ -12,8 +12,8 @@
author_email='gerardo.orozco.mosqueda@gmail.com',
license='BSD',
url='https://github.com/gerardo-orozco/django-template-utils',
packages=['template_utils'],
package_data={'template_utils': ['templatetags/*']},
packages=find_packages(),
package_data={'template_utils': ['template_utils/templatetags/*.py']},
include_package_data=True,
classifiers=[
'Development Status :: 4 - Beta',
Expand Down

0 comments on commit e833645

Please sign in to comment.