AlphacrucisCollege / django-template-utils

Fork of (abandoned?) package used in ac.edu.au. Exported via GoogleCodeExport.
https://bitbucket.org/ubernostrum/django-template-utils
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

New functionality for template_utils.markup module #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The patch, that adding some new functionality to template_utils.markup module:

 * new class 'Filter', that has a verbose_name for human reading and
redefines self __call__ method. So, we can use it as a standard format
function, like markup()

 * new property 'choices' for MarkupFormatter, that returns an tuple of
available choces in form of ('filter_name', 'verbose_filter_name'). We can
use it in our models as a helper.

 * new property 'default', that returns a default markup choice. Another
model helper.

Original issue reported on code.google.com by bodyan...@gmail.com on 12 May 2007 at 1:30

Attachments: