ConnectAi / cs

Cornerstone, an es6 web framework built on express.js
13 stars 1 forks source link

make dynamic layouts easier #14

Closed rosshadden closed 9 years ago

rosshadden commented 9 years ago

Make dynamic layouts (or lack thereof) easier, based on req.xhr.

optikalefx commented 9 years ago

what do you mean? more than sending a new layout to res.view or setting layout in the * method via res.layout?

rosshadden commented 9 years ago

At one point we wanted to be able to easily serve something different for AJAX requests than for straight up browser requests. It's possible as-is, using req.xhr, but we talked about making it easier in CS so devs don't have to know that you can do it in express.

optikalefx commented 9 years ago

I think this is easy enough.