Skip to content

Instantly share code, notes, and snippets.

@dmix
Created December 14, 2011 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmix/1475674 to your computer and use it in GitHub Desktop.
Save dmix/1475674 to your computer and use it in GitHub Desktop.
class TweetView extends Backbone.View
render: ->
tweet = this
dust.render("tweet", @model.toJSON(), (err, output) ->
$(tweet.el).html(output)
)
return this
Tweet = new TweetView({
model: {
user_name: "dmix",
tweet: "blah blah"
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment