# How to use haml

**URL:** <https://discourse.hanakai.org/t/how-to-use-haml/259>\
**Category:** questions\
**Created:** [June 24, 2016, 3:26pm UTC](https://discourse.hanakai.org/t/how-to-use-haml/259 "2016-06-24T15:26:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebrett](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/ebrett/32/225_2.png) [@ebrett](https://discourse.hanakai.org/u/ebrett)\
**Post date:** [June 24, 2016, 3:26pm UTC](https://discourse.hanakai.org/t/how-to-use-haml/259/1 "2016-06-24T15:26:47Z")

</div>

I’m working on a proposal for my work using hanami, but we use haml; the instructions say just require ‘haml’, but it isn’t clear where. Just writing a simple news blog, I’ve added it to the view and get the following error when rendered:

/home/brett/work/motif/apps/web/views/news\_blog/index.rb:1:in `require’: cannot load such file – haml (LoadError)

---

<div class="post-metadata">

**Author:** ![jodosha](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/jodosha/32/710_2.png) [@jodosha](https://discourse.hanakai.org/u/jodosha)\
**Post date:** [June 24, 2016, 3:32pm UTC](https://discourse.hanakai.org/t/how-to-use-haml/259/2 "2016-06-24T15:32:54Z")

</div>

@ebrett Hi and thanks for giving Hanami a try!

This entry in your `Gemfile` should be enough.

```
gem 'haml' 

```

Otherwise you can explicitly require it from `lib/<your-project-name>.rb`

Does this solves your issue?

---

<div class="post-metadata">

**Author:** ![ebrett](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.hanakai.org/ebrett/32/225_2.png) [@ebrett](https://discourse.hanakai.org/u/ebrett)\
**Post date:** [June 24, 2016, 3:40pm UTC](https://discourse.hanakai.org/t/how-to-use-haml/259/3 "2016-06-24T15:40:10Z")

</div>

indeed it did! I thought it was already included in Hanami, so I didn’t think of that.

thanks!
