Skip to content

Instantly share code, notes, and snippets.

@acelot
Created September 20, 2012 02:53
Show Gist options
  • Save acelot/3753680 to your computer and use it in GitHub Desktop.
Save acelot/3753680 to your computer and use it in GitHub Desktop.
var Item = can.Model({
findAll: 'GET /app/items',
findOne: 'GET /app/items/get/{id}'
}, {});
can.view('views/simple.ejs', {
items: Item.findAll()
}).then(function (result) {
$('#content').html(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment