shiyanhui / hero

A handy, fast and powerful go template engine.
https://shiyanhui.github.io/hero
Other
1.57k stars 96 forks source link

Don't generate partial if empty. #85

Open abalbanyan opened 4 years ago

abalbanyan commented 4 years ago

If I create a partial, even though it is inlined in the file it is included in, hero will still generate an empty file like so:

package generated

It would make for cleaner output if these empty files are omitted.