django-tinycontent 0.1.8

A Django app for managing re-usable blocks of tiny content.

django-tinycontent is a simple Django application for re-usable content blocks, much like django-boxes.

Installation is simple:

pip install django-tinycontent

Add tinycontent to your INSTALLED_APPS.

Usage in templates is simple:

{% load tinycontent_tags %}

{% tinycontent_simple 'content_name' %}

Or, to specify a value if a content block by the given name cannot be found, use:

{% load tinycontent_tags %}

{% tinycontent 'content_name' %}
This will be shown if no matching object is found.
{% endtinycontent %}

The name of the content block can also be a context variable, using both the simple and the complex variants.

Content blocks themselves can be added and edited using Django's admin interface. If a block with the name given in the template tag cannot be found, either nothing is rendered (if using tinycontent_simple), or the text between tinycontent and endtinycontent is rendered (if using the more complex variant).

To apply custom filters to your content, set TINYCONTENT_FILTER to a dotted path to a callable that takes the raw content and returns the transformed content.

django-tinycontent supports Django 1.4 and Django 1.5. Python 2.6 works with both versions of Django, and Python 3.3 is supported for Django 1.5.

Changelog

v0.1.8

  • Added the TINYCONTENT_FILTER setting for controlling the way content is output.
  • Improved testing with Travis (we now test all supported Python versions and Django versions).
BSD

Author

Dominic Rodger

Pip

django-tinycontent==0.1.8

Classifiers

  • Programming Language :: Python :: 3.3
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 2.6
  • Operating System :: OS Independent
  • License :: OSI Approved :: BSD License
  • Intended Audience :: Developers
  • Framework :: Django
  • Environment :: Web Environment
  • Development Status :: 3 - Alpha
File Type Python Version Uploaded On Downloads
django-tinycontent-0.1.8.tar.gz Source June 11, 2013 1,243
Version Release Date
0.1.8 June 11, 2013
0.1.7 March 31, 2013
0.1.6 Jan. 27, 2013
0.1.5 Jan. 5, 2013
0.1.4 Jan. 5, 2013
0.1.2 Jan. 4, 2013
0.1.1 Jan. 4, 2013
0.1.0 Jan. 4, 2013
Date Package Version Action
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.7 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.6 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.5 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.4 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.2 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.1 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.0 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent 0.1.8 Release Created
Nov. 4, 2014, 1:58 p.m. django-tinycontent Package Created