diff options
Diffstat (limited to 'mako/ext/preprocessors.py')
-rw-r--r-- | mako/ext/preprocessors.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mako/ext/preprocessors.py b/mako/ext/preprocessors.py index c24893b..5624f70 100644 --- a/mako/ext/preprocessors.py +++ b/mako/ext/preprocessors.py @@ -4,17 +4,17 @@ # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php -"""preprocessing functions, used with the 'preprocessor' +"""preprocessing functions, used with the 'preprocessor' argument on Template, TemplateLookup""" import re + def convert_comments(text): """preprocess old style comments. - + example: - + from mako.ext.preprocessors import convert_comments t = Template(..., preprocessor=convert_comments)""" return re.sub(r'(?<=\n)\s*#[^#]', "##", text) - |