https://github.com/dflock/mako2jinja
Converts a given mako template into a jinja template, badly.
https://github.com/dflock/mako2jinja
Last synced: about 2 months ago
JSON representation
Converts a given mako template into a jinja template, badly.
- Host: GitHub
- URL: https://github.com/dflock/mako2jinja
- Owner: dflock
- Created: 2013-04-18T01:21:00.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-20T02:34:03.000Z (about 13 years ago)
- Last Synced: 2025-02-24T02:14:59.522Z (over 1 year ago)
- Language: Python
- Size: 152 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mako2Jinja
Converts a given mako template into a jinja template, badly.
It's just intended to help with the mechanical editing - you'll probably have to fixup anything complicated yourself.
Usage:
mako2jinja.py FILE
mako2jinja.py (-h | --help)
mako2jinja.py --version
Arguments:
FILE Input file.
Options:
-h --help Show this screen.
--version Show version.
Currently knows how to handle and convert:
* blocks
* def -> macro's
* if, else, endif
* for, endfor
* namespace -> import
* inherit -> extends
* filters:
* len(thing* ) -> thing|length
* |h -> |e
* variable output
* single line comments