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
Post a Comment