Open rosshadden opened 9 years ago
res.view.model
res.view.{{anything}}
res.private
res.view.public
CS.public
res.view([view], {key:value, model:{key:value}}, {public});
res.view({ foo: "bar", model: { sean: "clark" }});
res.view.model
should be the main data the view needsres.view.{{anything}}
should be any extra data the view needsres.private
should contain all keys on res.viewres.view.public
should be any data you want to be available toCS.public
res.view([view], {key:value, model:{key:value}}, {public});
res.view({ foo: "bar", model: { sean: "clark" }});
res.view.model
that existed in that res/req chain