foundation / panini

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

Add a simple reset function #230

Open t-moennich opened 3 years ago

t-moennich commented 3 years ago

We use panini for e-mail development and testing in a i18n multi product environment.

Sometimes panini picked up the wrong partials (same file name, different directories) so we end up with this simple workaround. Everytime a file was changed, we reset the global panini object and enforce a fresh creation.

As this fixed our issues this may be related to some internal caching issues. Any other working solution would be appreciated :)