twing: Autoreload broken
Hi, first of all, thanks for the great work!
Unfortunately the auto_reload option does not seem to work.
Each template gets rendered once, but no changes in the template are getting applied when re-rendering. Only when the app gets restarted.
This is how i configured it. No custom Extension or any further configuration done so far.
const loader = new TwingLoaderFilesystem(path.join(process.cwd(), '../views'));
const twing = new TwingEnvironment(loader, {
debug: true,
auto_reload: true
});
Node: v8.11.1 Twing: 1.0.0
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (11 by maintainers)
Commits related to this issue
- Fix issue #194 — committed to NightlyCommit/twing by ericmorand 6 years ago
- Merge pull request #203 from ericmorand/issue_194 Fix issue #194 — committed to NightlyCommit/twing by ericmorand 6 years ago
- Fix issue #216 Revert "Fix issue #194" This reverts commit 4cc31b6b0db0dd7d0bc02b3864a3cbac1f67d051. — committed to NightlyCommit/twing by ericmorand 6 years ago
@ericmorand this would be totally fine with me. I actually fixed it temporarily for us by recreating the environment for each rendering-roadtring before your fix, as we needed it to be used for a project.
Hi, i can confirm: it works! Thanks a lot