Using haml in internationalisation with haml views

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs