From f22a833db76c49451d0d0c1f33bd9a3e9f7d5370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Andr=C3=A9s=20Rodr=C3=ADguez=20Scelza?= Date: Thu, 26 Nov 2020 03:09:53 -0300 Subject: [PATCH] Explained that default layout path can be specified You may set the path for the default layout to be used: ```javascript app.set('view options', { defaultLayout: '/path/to/layout') }); ``` --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index df55824..a8b89bb 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,12 @@ partials.register('.j',require('jade')); partials.register('.j','jade'); ``` +You may set the path for the default layout to be used: + +```javascript +app.set('view options', { defaultLayout: '/path/to/layout') }); +``` + For an example on how to use partials in the first place I'd recommend you checking out the [Express 2.x ejs example](https://github.com/visionmedia/express/tree/2.x/examples/ejs). ## Template Support