Skip to content

Instantly share code, notes, and snippets.

@machty
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machty/7c250dbc0e7584dc32e6 to your computer and use it in GitHub Desktop.
Save machty/7c250dbc0e7584dc32e6 to your computer and use it in GitHub Desktop.
import FooComponent from 'foo';
function funHelper(value, options) {
return value + "!!!";
}
var foo = "yes";
export default Ember.Component.extend({
bar: 123,
layout: (
<div>
Use closed-over stuff above:
{{funHelper wat}}
{{foo}}
{{#FooComponent}}{{/FooComponent}}
<FooComponent></FooComponent>
Use context:
{{bar}}
{{anything}}{{that}}{{is}}{{not}}{{closed}}{{over}}
</div>
)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment