Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add --output-file option to mako-render #283

zzzeek opened this issue Nov 27, 2018 · 0 comments

add --output-file option to mako-render #283

zzzeek opened this issue Nov 27, 2018 · 0 comments


Copy link

@zzzeek zzzeek commented Nov 27, 2018

CC @bjodah per pull request submitted to bitbucket:

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.

gerrit at, however we have no test fixture for the mako-render thing. that would be helpful to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

1 participant