moban
moban copied to clipboard
Skip empty
one feature missing wrt https://github.com/PGower/templateer/blob/master/templateer.py is option to skip empty results which contain only whitespace.
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?
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.