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

dynamic includes #416

Closed
bazjapan opened this issue Nov 24, 2011 · 4 comments
Closed

dynamic includes #416

bazjapan opened this issue Nov 24, 2011 · 4 comments

Comments

@bazjapan
Copy link

I'm hoping to pass part of the include path as a view variable and call it like the following.

include header
include page-content/#{myPassedTemplateName}
include footer

is it possible?

@tj
Copy link
Contributor

tj commented Nov 24, 2011

unfortunately no, they're compile-time includes, which is somewhat necessary for a few technical reason that I wont get into but we may eventually need to add a dynamic alternative, closing for now

@tj tj closed this as completed Nov 24, 2011
@bazjapan
Copy link
Author

Thanks - much appreciate the speedy reply.

@devqin
Copy link

devqin commented Feb 22, 2014

@visionmedia did you have add a dynamic alternative for dynamic includes?

@rlidwka
Copy link
Member

rlidwka commented Feb 23, 2014

mixins?

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

4 participants