change local_assigns argument to match that used by ActionView

git-svn-id: svn://hamptoncatlin.com/haml/trunk@572 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
tom 2007-07-24 03:42:07 +00:00
parent 22c471a729
commit 39e1abe669
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ END
@precompiled = '' @precompiled = ''
method_name = assign_method_name(@template, options[:filename]) method_name = assign_method_name(@template, options[:filename])
push_silent <<-END push_silent <<-END
def #{method_name}(_haml_local_assigns) def #{method_name}(local_assigns)
@haml_is_haml = true @haml_is_haml = true
_hamlout = @haml_stack[-1] _hamlout = @haml_stack[-1]
_erbout = _hamlout.buffer _erbout = _hamlout.buffer
@ -211,7 +211,7 @@ END
@@supported_local_assigns[@template] = supported_local_assigns @@supported_local_assigns[@template] = supported_local_assigns
@options[:locals].each do |k,v| @options[:locals].each do |k,v|
supported_local_assigns[k] = true supported_local_assigns[k] = true
push_silent "#{k} = _haml_local_assigns[:#{k}]" push_silent "#{k} = local_assigns[:#{k}]"
end end
old_line = nil old_line = nil