sproutcore / guides

The guides source. Build and push to https://github.com/sproutcore-guides/sproutcore-guides.github.com.

Home Page:http://guides.sproutcore.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requesting new templates guide

panupan opened this issue · comments

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}}.

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
      • Displaying Collections
        • #each
        • #collection
    • Using TemplateViews inside other views