1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-22 17:22:22 -05:00
kaiwa/clientapp/views/main.js
2013-08-29 20:38:28 -07:00

18 lines
462 B
JavaScript

/*global $, app, me*/
"use strict";
var StrictView = require('strictview');
var templates = require('../templates');
var ContactListItem = require('../views/contactListItem');
module.exports = StrictView.extend({
template: templates.body,
render: function () {
$('head').append(templates.head());
this.renderAndBind();
this.renderCollection(me.contacts, ContactListItem, this.$('#contactList'));
return this;
}
});