Created
March 26, 2013 13:12
-
-
Save JamesEggers1/5245252 to your computer and use it in GitHub Desktop.
An example of what I'd like to be able to do in Jade.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 5 | |
head | |
body | |
//- Currently this is the norm and works find | |
include path/to/partial | |
//- This is what I want to be able to do - provide the base directory from the route/rendering data. | |
include #{dir_from_route}/to/partial |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A-like so:
Then, in your views: