1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
Thank you, thank you, thank you.



git-svn-id: svn://hamptoncatlin.com/haml/trunk@19 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
hcatlin 2006-08-08 22:55:07 +00:00
parent b394cbaddc
commit 4f9465d540
2 changed files with 5 additions and 4 deletions

View file

@ -179,11 +179,11 @@ module HAML
end
def method_missing(action, *args, &block)
if action.to_s.first == "@"
@__base.instance_eval(action)
else
#if action.to_s.first == "@"
# @__base.instance_eval(action)
#else
@__locals[action.to_s] || @__locals[action.to_sym] || @__base.send(action, *args, &block)
end
#end
end
end

View file

@ -10,6 +10,7 @@ class HamlTest < Test::Unit::TestCase
def setup
ActionView::Base.register_template_handler("haml", HAML::Engine)
@base = ActionView::Base.new(File.dirname(__FILE__) + "/../test/templates/")
@base.instance_eval("@hello_world = 'Hello, World!'")
@engine = HAML::Engine.new(@base)
end