X7ROOT File Manager
Current Path:
/opt/hc_python/lib/python3.12/site-packages/mako/ext
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
mako
/
ext
/
ðŸ“
..
📄
__init__.py
(0 B)
ðŸ“
__pycache__
📄
autohandler.py
(1.84 KB)
📄
babelplugin.py
(2.04 KB)
📄
beaker_cache.py
(2.52 KB)
📄
extract.py
(4.55 KB)
📄
linguaplugin.py
(1.89 KB)
📄
preprocessors.py
(576 B)
📄
pygmentplugin.py
(4.64 KB)
📄
turbogears.py
(2.09 KB)
Editing: preprocessors.py
# ext/preprocessors.py # Copyright 2006-2025 the Mako authors and contributors <see AUTHORS file> # # 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' 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)
Upload File
Create Folder