Simple starting point for Ember.js fiddles
HTML
<script src="https://github.com/downloads/emberjs/ember.js/ember-0.9.3.js"></script>
<script type="text/x-handlebars">
{{#with App.model}}
<div class="box" {{bindAttr class="isFiltered"}}> Test </div>
{{/with}}
</script>
CSS
.box
{
width:200px;
background:red;
height:100px;
margin:100px;
}
.is-filtered
{
border:5px solid gray;
width:80px;
height:80px;
background:green;
margin:100px;
}
JavaScript
App = Ember.Application.create({});
App.model = Ember.Object.create({
isFiltered:true
});