You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With hbs.registerPartials(__dirname + '/views/movies/partials', (err)=> err && console.log(err)); only it does work.
The text was updated successfully, but these errors were encountered:
jtonneyck
changed the title
Using registePartials twice with paths that partially match disables app.locals
Using registePartials twice disables app.locals
Jun 19, 2020
I am not able to reproduce the behavior with the information given. That doesn't mean there is no issue here, but just not enough information. Please provide enough code and data in order to reproduce the issue so we can look into the issue. Alternatively, a pull request with a fix can be submitted.
app.js
hbs.registerPartials(__dirname + '/views/partials', (err)=> err && console.log(err)); hbs.registerPartials(__dirname + '/views/movies/partials', (err)=> err && console.log(err)); app.locals.foo = "bar";
./layout.hbs
{{foo}} => undefined
With
hbs.registerPartials(__dirname + '/views/movies/partials', (err)=> err && console.log(err));
only it does work.The text was updated successfully, but these errors were encountered: