Welcome to textprocessor’s documentation!

The textprocessor module is a simple django app that allow the developper to easily enhance the content of a string.

Installation

  1. Install from GitHub (PyPI will be available later)

    pip install git+https://github.com/jibaku/django-textprocessor.git#egg=textprocessor
    
  2. Add ‘textprocessor’ to your INSTALLED_APPS

    INSTALLED_APPS = (
        'textprocessor',
    )
    
  3. Install the dependancies using required.txt from the root of the project if you are using a checkout. Either it’s handled by setup.py. Currently the following dependancies are needed :

  1. Enjoy.

Usage

Describes how to use textprocessor when it is installed and configured.

Templatetags

textprocessor provides various template tags that can be used to enhance the content displayed to the user.

twitter_username

The twitter_username looks for @username in the value passed to the filter and add the link to the given username on the Twitter.com website:

{{ content|twitter_username }}

markdown_filter

The markdown filter convert the value passed to the filter and convert it to markdown using the markdown library:

{{ content|markdown }}

Indices and tables