foundation / panini

A super simple flat file generator.
Other
592 stars 104 forks source link

Add a simple reset function #229

Closed t-moennich closed 3 years ago

t-moennich commented 3 years ago

We use panini for e-mail testing in a i18n multi product evironment.

During our development we encountered some strange behaviour on a longer runing gulp task. Some templates (same file names, different directories) are picked wrong which may be related to some caching issues. Our quick fix was this simple function which just cleares the global object and therefore forces the engine to be recreated.

Any other hint or real solution would be realy appreciated :)