mako
mako copied to clipboard
Mako Templates for Python
That way, mako can directly evaluate template files and can be used as a file interpreter. When using either * `#!/usr/bin/env -S python3 -m mako -s -a --` * `#!/usr/bin/env...
can anyone come across this? -- Python checking for distutils :3: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632...
**Migrated issue, originally created by jvanasco ([@jvanasco](https://github.com/jvanasco))** I've been working on some tools to precompile templates before a webserver forks, and have run into a few issues when trying to...
I've got a fairly complex template layout. It would be helpful for debugging to have a way I could see which filenames are part of a template. Example: example.tmpl includes...
If a template is opened with incompatible encoding (such as unicode text but no UTF-8 identification on PY2, or potential encoding mismatches on PY3), a Unicode error will be raised...
**Migrated issue, originally created by Anonymous** I modified the run_wsgi.py file to work directly in Apache to enable PHP-style pages written in Mako. I don't want to offend the purists...
**Migrated issue, originally created by Anonymous** Hi, I was wondering how to use control/break within a loop. I didn't find anything in the docs, so I tried this: % for...
**Migrated issue, originally created by jvanasco ([@jvanasco](https://github.com/jvanasco))** I've opened a ticket/PR with Markupsafe for this, but wanted to alert Mako on this too as addressing this behavior may be warranted...
I guess pre-commit is a good suggestion to let the project clean, and also check the new PRs if they correspond to the linting rules. For example: - I use...
Where should self.body be placed in the template? What is the difference between different positions