WhenEqual helper

HTML

<script src="http://builds.emberjs.com/handlebars-1.0.0.js"></script>
<script src="http://builds.emberjs.com/ember-latest.js"></script>
<script type="text/x-handlebars" data-template-name="application">
    <h1>ember-latest jsfiddle</h1>
    {{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="index">

    {{#whenequal 'test' 'test' }}
     <p> display this content, if it passes</p>
    {{/whenequal}}
 
    
</script>

CSS

h1 { font-size: 1.6em; padding-bottom: 10px; }
h2 { font-size: 1.4em; }

JavaScript

App = Ember.Application.create({});

Handlebars.registerHelper('whenequal', function(val1, val2, options) {
    if(val1==val2){
       return options.fn(this);        
    }
});