1
0
Fork 0
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:
nex3 2006-10-21 21:11:55 +00:00
parent f7875b1e36
commit 9ef532f93c
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,5 @@
require File.dirname(__FILE__) + '/helpers' require File.dirname(__FILE__) + '/helpers'
require File.dirname(__FILE__) + '/buffer' require File.dirname(__FILE__) + '/buffer'
require 'profiler'
module Haml module Haml
# This is the class where all the parsing and processing of the 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 # Processes the template and returns the resulting (X)HTML code as
# a string. # a string.
def to_html(scope = Object.new) def to_html(scope = Object.new)
@scope = scope @scope_object = scope
# Compile the @precompiled buffer # Compile the @precompiled buffer
compile compile

View file

@ -26,7 +26,7 @@ module Haml
end end
# Set all the local assigns # Set all the local assigns
local_assigns.each do |key,val| local_assigns.each do |key,val|
class << self; self; end.send(:define_method, key) &:val self.class.send(:define_method, key) { val }
end end
end end