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

Call partial inside another partial #22

Closed
ecdeveloper opened this issue Oct 20, 2012 · 3 comments
Closed

Call partial inside another partial #22

ecdeveloper opened this issue Oct 20, 2012 · 3 comments

Comments

@ecdeveloper
Copy link

I'm getting an error when trying to call partial() inside another partial.
So for example - I have a layout, where I made a call:
<%- partial('partials/view1') %>

Inside partials/view1.ejs I have another call:
<%- partial('partials/subview1') %>

For this second call I'm getting the error: 'partial is not defined'.

Any hints how to fix it?

@slaskis
Copy link
Member

slaskis commented Oct 22, 2012

Did you try this on master?

@ecdeveloper
Copy link
Author

Yes. I've cloned the master and I still get the error. I have created a simple app to test it. Check this out - http://ecdeveloper.com/wp-content/uploads/test-partials.zip

@slaskis
Copy link
Member

slaskis commented Oct 22, 2012

Thanks a lot for the tests!

ecdeveloper pushed a commit to ecdeveloper/express-partials that referenced this issue Oct 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants