Templates.helpers.render()

render (name, context, options) Stringpublic Defined in packages/ember-htmlbars/lib/keywords/render.js:14 Calling {{render}} from within a template will insert another template that matches the provided name. The inserted template will access its properties on its own controller (rather than the controller of the parent template). If a view class with the same name exists, the view class also will be used. Note: A given controller may only be used once in your app in this manner. A singleto

Templates.helpers.query-params()

query-params (hash) Objectpublic Defined in packages/ember-htmlbars/lib/helpers/query-params.js:9 This is a helper to be used in conjunction with the link-to helper. It will supply url query parameters to the target route. Example {{#link-to 'posts' (query-params direction="asc")}}Sort{{/link-to}} Parameters: hash Object takes a hash of query parameters Returns: Object A `QueryParams` object for `{{link-to}}`

Templates.helpers.partial()

partial (partialName) public Defined in packages/ember-htmlbars/lib/keywords/partial.js:9 The partial helper renders another template without changing the template context: {{foo}} {{partial "nav"}} The above example template will render a template named "-nav", which has the same context as the parent template it's rendered into, so if the "-nav" template also referenced {{foo}}, it would print the same thing as the {{foo}} in the above example. If a "-nav" template isn't found, the parti

Templates.helpers.outlet()

outlet (name) public Defined in packages/ember-htmlbars/lib/keywords/outlet.js:17 The {{outlet}} helper lets you specify where a child route will render in your template. An important use of the {{outlet}} helper is in your application's application.hbs file: {{! app/templates/application.hbs }} <!-- header content goes here, and will always display --> {{my-header}} <div class="my-dynamic-content"> <!-- this content will change based on the current route, which depends o

Templates.helpers.mut()

mut (attr) public Defined in packages/ember-htmlbars/lib/keywords/mut.js:47 The mut helper lets you clearly specify that a child Component can update the (mutable) value passed to it, which will change the value of the parent component. This is very helpful for passing mutable values to a Component of any size, but critical to understanding the logic of a large/complex Component. To specify that a parameter is mutable, when invoking the child Component: {{my-child childClickCount=(mut total

Templates.helpers.mount()

mountpublic Defined in packages/ember-htmlbars/lib/keywords/mount.js:13 The {{mount}} helper lets you embed a routeless engine in a template. Mounting an engine will cause an instance to be booted and its application template to be rendered. For example, the following template mounts the ember-chat engine: {{! application.hbs }} {{mount "ember-chat"}} Currently, the engine name is the only argument that can be passed to {{mount}}.

Templates.helpers.log()

log (values) public Defined in packages/ember-htmlbars/lib/helpers/log.js:8 log allows you to output the value of variables in the current rendering context. log also accepts primitive types such as strings or numbers. {{log "myVariable:" myVariable }} Parameters: values *

Templates.helpers.loc()

loc (str) public Defined in packages/ember-htmlbars/lib/helpers/loc.js:9 Calls Ember.String.loc with the provided string. This is a convenient way to localize text within a template. For example: Ember.STRINGS = { '_welcome_': 'Bonjour' }; <div class='message'> {{loc '_welcome_'}} </div> <div class='message'> Bonjour </div> See Ember.String.loc for how to set up localized string references. Parameters: str String The string to format.

Templates.helpers.link-to()

link-to (routeName, context, options) Stringpublic Defined in packages/ember-htmlbars/lib/components/link-to.js:6 The {{link-to}} component renders a link to the supplied routeName passing an optionally supplied model to the route as its model context of the route. The block for {{link-to}} becomes the innerHTML of the rendered element: {{#link-to 'photoGallery'}} Great Hamster Photos {{/link-to}} You can also use an inline form of {{link-to}} component by passing the link text as the fi

Templates.helpers.input()

input (options) public Defined in packages/ember-htmlbars/lib/keywords/input.js:8 The {{input}} helper lets you create an HTML <input /> component. It causes an Ember.TextField component to be rendered. For more info, see the Ember.TextField docs and the templates guide. {{input value="987"}} renders as: <input type="text" value="987" /> Text field If no type option is specified, a default of type 'text' is used. Many of the standard HTML attributes may be passed to this helpe