Skip to content

Instantly share code, notes, and snippets.

@thomasboyt
Created September 3, 2013 02:33
Show Gist options
  • Save thomasboyt/6419124 to your computer and use it in GitHub Desktop.
Save thomasboyt/6419124 to your computer and use it in GitHub Desktop.
macro feature {
case $featureName:ident $block => {
if (Ember.FEATURES.isEnabled("$featureName"))
$block
}
}
feature foo {
var bar = {
"ex": "example"
};
function bar() {
console.log("hello!");
}
}
var baz;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment