carlitoplatanito / gulp-nunjucks-render

[Gulp](https://github.com/wearefractal/gulp) plugin to render [Nunjucks](http://mozilla.github.io/nunjucks/) templates
149 stars 33 forks source link

Small Changes Not Compiled #46

Closed 58bits closed 8 years ago

58bits commented 8 years ago

Have a weird problem with nunjucks. When I make small changes to a comment section in a parent template, the 'page' template that extends the parent, does not get compiled (although the file to be compiled is being passed to nunjucks). If I type an extra word or two in the source parent template, all works as expected. I suspect this is a nunjucks problem, and not gulp-nunjucks-render - but thought I'd post here as well just in case I'm missing something obvious.

Here's the issue I've posted with nunjucks... https://github.com/mozilla/nunjucks/issues/810

kamlekar commented 8 years ago

That possibly happens because of cache. Try clearing cache or commenting sourcemaps code.

On 18-Aug-2016 10:53 PM, "Anthony Bouch" notifications@github.com wrote:

Have a weird problem with nunjucks. When I make small changes to a comment section in a parent template, the 'page' template that extends the parent, does not get compiled (although the file to be compiled is being passed to nunjucks). If I type an extra word or two in the source parent template, all works as expected. I suspect this is a nunjucks problem, and not gulp-nunjucks-render - but thought I'd post here as well just in case I'm missing something obvious.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carlosl/gulp-nunjucks-render/issues/46, or mute the thread https://github.com/notifications/unsubscribe-auth/ACGWYu-fGDa5qQwfM_V0YOR3_4ySXpiRks5qhJUDgaJpZM4JnuKl .

58bits commented 8 years ago

Hi @kamlekar - thanks for the reply. Can I ask - what cache? This is a server-side render, and the templates/files are being rendered by compile.renderString - before being placed in the stream/buffer queue for Gulp to write to disk via gulp.dest('./public')

58bits commented 8 years ago

Ignore me - found the problem. The IDE was not writing the changes to disk (although they were being shown in the editor window).