HAML broken when used with simple_localization plugin

4 views
Skip to first unread message

DerGuteMoritz

unread,
Jul 27, 2007, 12:46:29 PM7/27/07
to Haml
Hi everyone,

the HAML plugin for Rails seems to be broken when used together with
the simple_localization plugin (http://simple-
localization.arkanis.de). As soon as the simple_localization method is
called (this is needed to set the language(s) to be used), HAML
templates don't get rendered anymore but sent directly as source code.
This is true at least for edge Rails - maybe this is the same issue as
reported by someone else a few weeks ago. Also, erb templates still
work as expected. Any ideas? Or should I better report this to
simple_localization people?

Regards
Moritz

Nathan Weizenbaum

unread,
Jul 28, 2007, 3:58:33 AM7/28/07
to ha...@googlegroups.com
I'm having trouble reproducing this... could you walk me through the
steps to creating the smallest possible application where this error
shows up?

- Nathan

Mislav Marohnić

unread,
Jul 28, 2007, 4:53:00 AM7/28/07
to ha...@googlegroups.com
Same happens with Globalize and edge Rails. Simple-localization plugin took the part which messes up Rails internals (ActionView rendering) from Globalize. To find out why Haml isn't processed, look at the line 28 here:
http://simple-localization.arkanis.de/repository/file/trunk/plugin/lib/features/localized_templates.rb

Nathan Weizenbaum

unread,
Jul 28, 2007, 3:58:45 PM7/28/07
to ha...@googlegroups.com
According to the comments, "Other types like liquid has to register
through register_handler." Haml /does/ register with
register_template_handler, which I gather is what they mean.

Anyway, I'm pretty sure it's simple_localization's fault... I'd let them
know about it.

- Nathan

Mislav Marohnić wrote:
> Same happens with Globalize and edge Rails. Simple-localization plugin
> took the part which messes up Rails internals (ActionView rendering)
> from Globalize. To find out why Haml isn't processed, look at the line
> 28 here:
> http://simple-localization.arkanis.de/repository/file/trunk/plugin/lib/features/localized_templates.rb
>
>

> On 7/28/07, *Nathan Weizenbaum* <nex...@gmail.com

DerGuteMoritz

unread,
Jul 31, 2007, 1:52:14 PM7/31/07
to Haml
Hi Nathan,

On Jul 28, 9:58 pm, Nathan Weizenbaum <nex...@gmail.com> wrote:
> Anyway, I'm pretty sure it's simple_localization's fault... I'd let them
> know about it.

yup, done that already. Thanks a lot!

Moritz

Reply all
Reply to author
Forward
0 new messages