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

Skip empty #199

Open
jayvdb opened this issue Jan 29, 2019 · 2 comments
Open

Skip empty #199

jayvdb opened this issue Jan 29, 2019 · 2 comments

Comments

@jayvdb
Copy link
Member

jayvdb commented Jan 29, 2019

one feature missing wrt https://github.com/PGower/templateer/blob/master/templateer.py is option to skip empty results which contain only whitespace.

@jayvdb jayvdb added this to the 0.5.0 milestone Jan 29, 2019
@chfw
Copy link
Member

chfw commented Jan 29, 2019

This one is similar to remove trailing empty spaces/lines. it is post templating filter that user choose to apply than system-wide policy. what do you think?

@jayvdb
Copy link
Member Author

jayvdb commented Jan 30, 2019

This is more like "allow empty files", which should be an error by default. no template should produce an empty file unless it is explicitly allowed.

And sometimes, instead of error, the user may want any empty generated files to be deleted. I can see that being desirable on a per-file and global level.

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

No branches or pull requests

2 participants