Skip to content

Instantly share code, notes, and snippets.

@charlesjolley
Created June 1, 2011 06:00
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 charlesjolley/1001855 to your computer and use it in GitHub Desktop.
Save charlesjolley/1001855 to your computer and use it in GitHub Desktop.
// add to the 'content' file
headerStyle: function() {
return [this.get('header_font'), this.get('header_size'), this.get('header_weight')].join(' ');
}.property('header_font', 'header_size', 'header_weight').cacheable()
<div id="content">
<p {{bindAttr style="content.headerStyle"}}>{{content.header}}</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment