These are chat archives for canjs/canjs

20th
Sep 2015
Sreeram Padmanabhan
@sreerampr
Sep 20 2015 16:04
Hi people, I have the following query. The below code is directly from the place-my-order application in the canjs website. I would like to know if it is possible to pass data into the template file. Thanks in advance.
var AppState = can.Map.extend({});
var appState = new AppState();
// Bind the application state to the root of the application
$('body').html(can.view('index.stache',appState));