Skip to content

Instantly share code, notes, and snippets.

@bjrmatos
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjrmatos/824c51d7f3c1fe05ac54 to your computer and use it in GitHub Desktop.
Save bjrmatos/824c51d7f3c1fe05ac54 to your computer and use it in GitHub Desktop.
Avoid relative paths in jade
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