Add --output-file option to mako-render

Declined
#27 · Created  · Last updated

Declined pull request

Dear contributor - This pull request is being moved to Gerrit, at https://gerrit.sqlalchemy.org/#/c/sqlalchemy/mako/+/958, where it may be tested and reviewed more closely. As such, the pull request itself is being marked "closed" or "declined", however your contribution is merely being moved to our central review system. Please register at https://gerrit.sqlalchemy.org#/register/ to send and receive comments regarding this item.

Closed by: ·2018-11-27

Description

This option is useful in e.g. Makefiles where currently using a redirect to target creates a file even on rendering failure, e.g.:

target.txt: target.txt.mako mako-render $< >$@

this would allow a user to use a Makfile such as:

target.xt: target.txt.mako mako-render $< --output-file $@

which would only create the target upon successful rendering.

0 attachments

0 comments

Loading commits...