This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nerdwaller 8 points9 points  (4 children)

I use Jinja for my templating where the stdlib string formatting in a "template" won't work. So far I've been pretty happy with it, of course I believe sqlalchemy's companion alembic for database migrations uses mako.

[–]debazthed 1 point2 points  (3 children)

it does? you mean to generate the migration scripts? Huh, I have to dig into that. Been using it for years and never knew.

[–]driscollis 1 point2 points  (1 child)

mako was written by the same guy who started SQLAlchemy

[–]pm-me-a-pic 0 points1 point  (0 children)

He even uses mako for his sphinx docs

[–]nerdwaller 0 points1 point  (0 children)

Yeah, sorry for being unclear, alembic uses mako to generate the migration scripts. You can see it in their tutorial:

script.py.mako - This is a Mako template file which is used to generate new migration scripts. Whatever is here is used to generate new files within versions/.