MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / locals

Function locals

lib/models/blueprint.js:694–694  ·  view source on GitHub ↗

Hook for adding custom template variables. When the following is called on the command line: ```sh ember generate controller foo --type=array --dry-run isAdmin:true ``` The object passed to `locals` looks like this: ```js { entity: { name: 'foo',

(/* options */)

Source from the content-addressed store, hash-verified

692 @return {Object|Promise|null}
693 */
694 locals(/* options */) {},
695
696 /**
697 Hook to add additional or override existing fileMap tokens.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…