Skip to content

Instantly share code, notes, and snippets.

@psykidellic
Created August 22, 2013 17:43
Show Gist options
  • Select an option

  • Save psykidellic/6310442 to your computer and use it in GitHub Desktop.

Select an option

Save psykidellic/6310442 to your computer and use it in GitHub Desktop.
TestView = Backbone.View.extend(
manage: true
template: _.template("{{= artist }}") #"#album-temp"
serialize: ->
artist: "psykidellic"
)
.. This ends up just having : {{= artist }} in the DOM.
But if I use an existing text/template script in the dom,
TestView = Backbone.View.extend(
manage: true
template: "#album-temp"
serialize: ->
artist: "psykidellic"
)
.. Using Backbone.Layoutmanager.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment