Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using registePartials twice disables app.locals #191

Closed
jtonneyck opened this issue Jun 19, 2020 · 3 comments
Closed

Using registePartials twice disables app.locals #191

jtonneyck opened this issue Jun 19, 2020 · 3 comments

Comments

@jtonneyck
Copy link

jtonneyck commented Jun 19, 2020

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.

@jtonneyck jtonneyck changed the title Using registePartials twice with paths that partially match disables app.locals Using registePartials twice disables app.locals Jun 19, 2020
@jtonneyck
Copy link
Author

Is seems to be cause after more than 1 partial is loaded in.

@dougwilson
Copy link
Contributor

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.

@dougwilson
Copy link
Contributor

Closing due to no response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants