I'm developing nodejs application and I have issue with include statement. It works when I use it like this:
include ../mixins/root.pug
...but is it possible to use variables on include?
None of these work:
include #{process.env.MIXINS_PATH}/root.pug
include !{process.env.MIXINS_PATH}/root.pug
include `${process.env.MIXINS_PATH}/root.pug`
Result is this:
Error: ENOENT: no such file or directory
Dynamic includes are not supported:
https://github.com/pugjs/pug/issues/2622#issuecomment-270157667