Skip to content

Instantly share code, notes, and snippets.

@workmanw
Forked from lxcodes/followup.handlebars
Created November 30, 2011 17:02
Show Gist options
  • Save workmanw/1409816 to your computer and use it in GitHub Desktop.
Save workmanw/1409816 to your computer and use it in GitHub Desktop.
Trouble With Sproutcore Template Views inside Core
<div>
Hello, <b>{{text}}</b>!
</div>
mainPane: SC.MainPane.design({
text: "world",
childViews: ['mainToolbar','followUp'],
mainToolbar: SC.ToolbarView.design({
...
}),
followUp: SC.View.design({
layout: { width: 200, height: 30 },
childViews: 'template'.w(),
template: SC.TemplateView.design({
templateName: 'followup',
textBinding: "parentView.parentView.text"
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment