On 12 juin, 00:58, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> I think you're not using Haml 2.0. It properly detects the Rails version
> and uses template or template.source and ActionView::Base or
> ActionView::Template as necessary.

Hello.

Yes I do:

$ git submodule |grep haml
 d4d176b138940a31b258ed8f4340381d8f355a17 vendor/plugins/haml
(2.0.0~159)

So I installed meanwhile an initializer:

module Haml
  class Template
    def compile(template)
      options = Haml::Template.options.dup
      options[:attr_wrapper] = '"'
      Haml::Engine.new(template.source,
options).send(:precompiled_with_ambles, [])
    end
  end
end

Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to