Follow onomatopej on Twitter Meet us on Facebook Blog Portfolio Publications Contact About

Posts Tagged ‘haml templates ruby performance i18n l10n multilanguage’

Haml + Gettext = automagic translation

Monday, April 13th, 2009

Haml logoI was rather sceptic to Haml once I have first time read about it. But after recently playing a while with it I can frankly express that it is simply outstanding template engine for Ruby. What I miss about Haml is some seamless integration with some i18n framework (gem).

So I decided to create Haml “mod” that usesĀ GetText (FastGettext alternatively) to automagically translate static texts from Haml templates during precompilation stage. So something that you don’t see and you don’t need to worry about. (more…)