require 'rubygems'
require 'haml'

class Test
  A = 'a'
  def initialize
    @a = 'b'
  end
end

p Haml::Engine.new(%[
= self.class::A
= @a
]).to_html(Test.new)

# A produces the error: (haml):1: uninitialized constant
Haml::Engine::CompiledTemplates::A (NameError)
# self.class::A works


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com
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