Looking at the code itself, I realized that someone cannot just refer to the jade file related to the root of the patterns.
However, a simple approach is to patch jade / lib / parser.js, replacing two instances:
, dir = dirname(this.filename);
FROM
, dir = path.indexOf('/') ? dirname(this.filename) : this.options.settings.views;
I could also warn you that this is not sufficiently tested and is not intended for use in production.
source share