mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Fixing crashing problems.
git-svn-id: svn://hamptoncatlin.com/haml/branches/faster@88 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
f7875b1e36
commit
9ef532f93c
2 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,5 @@
|
|||
require File.dirname(__FILE__) + '/helpers'
|
||||
require File.dirname(__FILE__) + '/buffer'
|
||||
require 'profiler'
|
||||
|
||||
module Haml
|
||||
# This is the class where all the parsing and processing of the HAML
|
||||
|
@ -75,7 +74,7 @@ module Haml
|
|||
# Processes the template and returns the resulting (X)HTML code as
|
||||
# a string.
|
||||
def to_html(scope = Object.new)
|
||||
@scope = scope
|
||||
@scope_object = scope
|
||||
|
||||
# Compile the @precompiled buffer
|
||||
compile
|
||||
|
|
|
@ -26,7 +26,7 @@ module Haml
|
|||
end
|
||||
# Set all the local assigns
|
||||
local_assigns.each do |key,val|
|
||||
class << self; self; end.send(:define_method, key) &:val
|
||||
self.class.send(:define_method, key) { val }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue