Add --output-file option to mako-render
Björn Dahlgren
Branch: bjodah/mako:mako-render-output
Branch: zzzeek/mako:master
Declined
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: Mike Bayer·2018-11-27
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.