Skip to content

Instantly share code, notes, and snippets.

View shirk3y's full-sized avatar

Mateusz Golewski shirk3y

  • Szczecin, Poland
View GitHub Profile
exports.Item = class PostView extends Backbone.View
template: require "../templates/post.jade"
events:
"click" : "loadDetails"
render: () =>
debug @model.toJSON()
$(@el).html(@template @model.toJSON())
@
loadDetails: () =>