# Use Handlebars in EmberJS

**URL:** <https://discuss.emberjs.com/t/use-handlebars-in-emberjs/9017>\
**Category:** Uncategorized\
**Created:** [October 27, 2015, 11:31am UTC](https://discuss.emberjs.com/t/use-handlebars-in-emberjs/9017 "2015-10-27T11:31:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![harimath](https://avatars.discourse-cdn.com/v4/letter/h/76d3ee/32.png) [@harimath](https://discuss.emberjs.com/u/harimath)\
**Post date:** [October 27, 2015, 11:31am UTC](https://discuss.emberjs.com/t/use-handlebars-in-emberjs/9017/1 "2015-10-27T11:31:27Z")

</div>

I am trying to use a custom helper in my Ember project. So I have done bower install --save handlebars

and then under helpers\compare.js, I have

```
import Handlebars from 'handlebars';

Handlebars.registerHelper('compare', function (lvalue, rvalue, options) {
}

```

Is this the correct way to import Handlebars js and use it inside helper ?

Above is giving error…Could not find module handlebars

---

<div class="post-metadata">

**Author:** ![ef4](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ef4/32/13470_2.png) [@ef4](https://discuss.emberjs.com/u/ef4)\
**Post date:** [October 28, 2015, 3:17pm UTC](https://discuss.emberjs.com/t/use-handlebars-in-emberjs/9017/2 "2015-10-28T15:17:59Z")

</div>

No, you probably don’t want to import handlebars or use raw handlebars helpers.

But it is very simple to add your own helper to Ember directly. Just make `app/helpers/compare.js` and put in:

```
export default Ember.Helper.helper(function([lvalue, rvalue], options) {
    return lvalue > rvalue;
});

```
