Skip to content

Instantly share code, notes, and snippets.

@searls
Created February 10, 2012 15:01
Show Gist options
  • Select an option

  • Save searls/1790117 to your computer and use it in GitHub Desktop.

Select an option

Save searls/1790117 to your computer and use it in GitHub Desktop.
#to use JST's as rails gives them to you
Backbone.LayoutManager.configure
fetch: (name) -> window.JST[name]
render: (template, context) -> template(context)
Backbone.LayoutManager.configure
fetch: (name) -> OE.template[name]
render: (template, context) -> template(context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment