# Using HAML in templates?

**URL:** <https://www.ruby-forum.com/t/using-haml-in-templates/198719>\
**Category:** Radiant CMS\
**Created:** [November 6, 2010, 1:23am UTC](https://www.ruby-forum.com/t/using-haml-in-templates/198719 "2010-11-06T01:23:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 6, 2010, 1:23am UTC](https://www.ruby-forum.com/t/using-haml-in-templates/198719/1 "2010-11-06T01:23:09Z")

</div>

I noticed that Radiant has HAML but are we able to use them in templates  
by default? I’ve tried something like:

%p hello world this is a demo

%figure \<  
%img{:src =\> ‘image.jpg’, :alt =\> ‘Hello’, :height=‘340’} \<  
%figcaption \<  
%span \<  
Caption here

But it does not parse. I might be going crazy and not doing it right?

---

<div class="post-metadata">

**Author:** ![envygeeks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e68b1a/32.png) [@envygeeks](https://www.ruby-forum.com/u/envygeeks)\
**Post date:** [November 6, 2010, 1:50am UTC](https://www.ruby-forum.com/t/using-haml-in-templates/198719/2 "2010-11-06T01:50:07Z")

</div>

did you install the plugin?  
check out the tutorial here: [http://haml-lang.com/tutorial.html](http://haml-lang.com/tutorial.html)

---

<div class="post-metadata">

**Author:** ![envygeeks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e68b1a/32.png) [@envygeeks](https://www.ruby-forum.com/u/envygeeks)\
**Post date:** [November 6, 2010, 3:26am UTC](https://www.ruby-forum.com/t/using-haml-in-templates/198719/3 "2010-11-06T03:26:35Z")

</div>

On Fri, Nov 5, 2010 at 8:22 PM, Jordon B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> But it does not parse. I might be going crazy and not doing it right?

What do you mean by “templates”?  
Rails views in your extensions? Yes.  
Radiant layouts? No. But you can add this  
[http://ext.radiantcms.org/extensions/145-haml-filter](http://ext.radiantcms.org/extensions/145-haml-filter)
