Book Image

Learning Yeoman

By : Jonathan Spratley
Book Image

Learning Yeoman

By: Jonathan Spratley

Overview of this book

Table of Contents (17 chapters)
Learning Yeoman
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Modern Workflows for Modern Webapps
Index

Templates


Ember has integrated the Handlebars semantic templating library to power your app's user interface. Handlebars allow the use of regular HTML markup along with the double mustache {{ }} expressions to display data and automatically update when the underlying data changes.

Handlebar helpers

Ember provides Handlebars helpers that can be used in your templates to render other views. Here is the list of default helpers:

  • {{ partial }}: This renders the specified name of the template in the current view and has access to the current scope.

    The partial's name must start with an underscore (data-template-name="_partial" or data-template-name="views/_partial").

  • {{ view }}: This renders the specified view template and has access to the current model and controller.

    This helper works like the partial helper, except instead of providing a template to be rendered within the current template, you provide a view class.

  • {{ render }}: This renders the view template in the current view and has access...