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

What's the equivalent of panini.refresh() in v2.0? #151

lipis opened this Issue Jan 29, 2018 · 1 comment


None yet
2 participants
Copy link

lipis commented Jan 29, 2018

So I'm using the version 2.0 for the foundation emails (because folders in partials). Everything works nicely except the panini.refresh().. What can I do to have the automatic refreshes without restarting the build process?


This comment has been minimized.

Copy link

gakimball commented Jan 29, 2018

The API is sort of half-finished right now, so refreshing isn't super easy unfortunately. My intent is to get rid of that function and have internal watchers for pages/partials/layouts/helpers/data that restart the build process for you. I've had a few false starts in trying to implement it.

There's a temporary solution in #143. The refresh() function is still in there, it's just a little tricky to get to.

I'm using Panini 2 with Foundation for Emails myself, although with the CLI. And I am having to get around the not-easy-refresh issue by just re-running the whole process every time a file changes. It's annoying, but thankfully the project is small enough that I don't notice the compile times.

Since this is similar to #143, I'm going to close this. Thank you for bearing with me, and I appreciate you helping me test out this almost-finished-but-not-quite update! :)

@gakimball gakimball closed this Jan 29, 2018

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