# Using haml in internationalisation with haml views

**URL:** <https://www.ruby-forum.com/t/using-haml-in-internationalisation-with-haml-views/186040>\
**Category:** Rails\
**Created:** [March 30, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/using-haml-in-internationalisation-with-haml-views/186040 "2010-03-30T19:27:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/7993a0/32.png) [@Rob\_A](https://www.ruby-forum.com/u/Rob_A)\
**Post date:** [March 30, 2010, 7:27pm UTC](https://www.ruby-forum.com/t/using-haml-in-internationalisation-with-haml-views/186040/1 "2010-03-30T19:27:21Z")

</div>

## I’m trying to use haml in my locale files but cant get it to parse. en.yml

page:  
content: "  
%p  
some paragraph  
%p  
another paragraph  
"

view.html.haml  
------------------- (works)  
=Haml::Engine.new(t('page.content)).render

-------------------(does not)  
=t('page.content)

is the first example the only way to do this?  
or am I going about this all wrong?

–  
Rob A.  
[http://robaldred.co.uk](http://robaldred.co.uk)
