Skip to content

Instantly share code, notes, and snippets.

@yumike
Created February 21, 2012 10:51
Show Gist options
  • Save yumike/1875767 to your computer and use it in GitHub Desktop.
Save yumike/1875767 to your computer and use it in GitHub Desktop.
class Article extends Publication
initialize: (@title, @content) ->
render: ->
@$(".title").html @title
@$(".content").html @content
class Article extends Publication
initialize: (title, content) ->
@title = title
@content = content
render: ->
@$(".title").html @title
@$(".content").html @content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment