Last active
August 29, 2015 14:12
-
-
Save bjrmatos/824c51d7f3c1fe05ac54 to your computer and use it in GitHub Desktop.
Avoid relative paths 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
To avoid ../../../views/layout you can set jade's basedir | |
config variable: app.locals.basedir = __dirname + '/views'; | |
and after that you should use 'absolute' (absolute from basedir) | |
paths in your views, eg: extends /layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment