pure180 / gulp-pug-inheritance

Gulp plugin to rebuild jade files and all files that have extended or included those files
11 stars 7 forks source link

Conditional includes are always processed #7

Open nagyalex opened 6 years ago

nagyalex commented 6 years ago

I have tested the plugin with project where some includes are included conditionally. Demonstration example index.pug:

- var authorized = true
if authorized
  include _includes/authorized.pug
else
  include _includes/guest.pug

Scenario:

So I have the impression the plugin searches for literal string of included file. Is my assumption correct?