My Sails.js application have separate frontend and admin layout. My view engine is ejs.
frontend
admin
ejs
How do I use separate layouts for frontend
In Sails 0.10 you can set a different layout like this in your controller:
// override the layout to use another res.locals.layout = 'layouts/layout2'; return res.view('test');
Detailed explanation here.