jimsynz / hamlbars

Some extensions to HAML to allow generation of Handlebars templates.
https://github.com/jamesotron/hamlbars.git
MIT License
179 stars 43 forks source link

Hamlbars fails with Haml 3.2 #27

Closed inkstak closed 12 years ago

inkstak commented 12 years ago

Hi,

I tried to use hamlbars, with the latest version of haml :

gem 'haml', '>= 3.2.0.beta' 
gem 'hamlbars'

.. and got the following error, when launching rails :

[...]/gems/hamlbars-1.0.0/lib/hamlbars/ext/compiler.rb:9:in `<module:Haml>': Compiler is not a module (TypeError)
    from [...]/gems/hamlbars-1.0.0/lib/hamlbars/ext/compiler.rb:8:in `<top (required)>'
    from [...]/gems/hamlbars-1.0.0/lib/hamlbars.rb:16:in `<module:Hamlbars>'
    from [...]/gems/hamlbars-1.0.0/lib/hamlbars.rb:4:in `<top (required)>'

It works fine with haml 3.1.x.

jimsynz commented 12 years ago

Thanks for the report. I'll start looking into it.

jimsynz commented 12 years ago

This has been fixed with #30. Can you verify your app with Hamlbars 1.1?

inkstak commented 12 years ago

It works fine. Thanks !

jimsynz commented 12 years ago

Yay!