sails.js - Sails JS: default forbidden response loads default layout -


i'm using sails v0.10.5.

for reason, when error page 403.ejs loaded (by forbidden.js) included in default layout under views/layout.ejs.

what 403.ejs included in layout.ejs therefore:

<html>      ...      <html>          ...      </html>      ...  </html> 

all views use layout.ejs file.

this done can customize response files , use layout.

you can set local variable layout within response layout file not render.

in responses/forbidden.js, locals defined , set locals.layout = false or can set custom layout file


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -