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

Add the ability to define default kwargs for the MARKUP_FILTER #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently it's only possible to define initial settings using 
settings.MARKUP_FILTER for a non-
named markup filter. It would be good if I can define initial settings for all 
markup filters in a 
simple way like:

{{{
    MARKUP_FILTER = {
        {'markdown':
            {'safe': True}
        },

        {'restructuredtext': {
             {'settings_overrides': {'header_level': 1, 'other_option': 2 },
             {'writer_name': 'html4css1' }, 
        }
        ...
    }
}}

However this might break the scheme as it always rely on django. 

{{{
    ``MarkupFormatter`` behaves this way so that it can be used
    stand-alone, without the need to configure or even install
    Django.
}}}

Original issue reported on code.google.com by mar...@mahner.org on 14 Apr 2009 at 4:59