Requesting new templates guide
panupan opened this issue · comments
panupan commented
Hello, I believe it would be helpful to add a new section to the guides explaining how to we can use the new view templates feature. For example, I couldn't find documentation about the local view syntax anywhere, e.g. {{view MyApp.MyView}}.
Tom Dale commented
How does this look for an outline?
- Using TemplateViews and Handlebars
- What a template view is
- What a template is
- Bindings-aware templates with Handlebars
- How to define templates
- .handlebars files
- SC.Handlebars.compile()
- Handlebars
- Basics
- Properties with {{property}}
- {{#with}}
- {{#if}}
- {{#else}}
- {{#unless}}
- Localized strings with {{loc}}
- Binding element attributes with {{bindAttr}}
- String values
- Boolean values
- Bind multiple classes
- View Hierarchy
- {{view}} / {{#view}}
- Configuring bindings (contentBinding=...)
- Setting id with id=...
- Setting class with class=...
- Binding class with classBinding=...
- View look up relative to global space or parent view
- {{view}} / {{#view}}
- Displaying Collections
- #each
- #collection
- Basics
- Using TemplateViews inside other views
Gregory Moeck commented
This is now available http://guides.sproutcore.com/using_handlebars.html