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

Most upvoted comments

@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