0
require File.dirname(__FILE__) + '/helpers'
0
@@ -17,7 +17,7 @@ module Haml #:nodoc:
0
options.each { |k,v| eval("@#{k} = v") }
0
@template = template #String
0
- @result, @precompiled, @to_close_
queue = String.new, String.new, []
0
+ @result, @precompiled, @to_close_
stack = String.new, String.new, []
0
@scope_object = Object.new if @scope_object.nil?
0
@@ -36,7 +36,7 @@ module Haml #:nodoc:
0
handle_multiline(0, nil)
0
# Close all the open tags
0
- @to_close_
queue.length.times { close_tag }
0
+ @to_close_
stack.length.times { close_tag }
0
# Compile the @precompiled buffer
0
@@ -49,8 +49,8 @@ module Haml #:nodoc:
0
if line.strip[0, 3] == '!!!'
0
push_text %|<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">|
0
- if count <= @to_close_queue.size && @to_close_queue.size > 0
0
- (@to_close_queue.size - count).times { close_tag }
0
+ if count <= @to_close_stack.size && @to_close_stack.size > 0
0
+ (@to_close_stack.size - count).times { close_tag }
0
@@ -112,7 +112,7 @@ module Haml #:nodoc:
0
- @precompiled << "@haml_stack[-1] << #{tabs(@to_close_
queue.size).dump} << #{text}\n"
0
+ @precompiled << "@haml_stack[-1] << #{tabs(@to_close_
stack.size).dump} << #{text}\n"
0
@@ -129,7 +129,7 @@ module Haml #:nodoc:
0
push_silent("haml_temp = find_and_flatten(haml_temp)")
0
- push_visible("#{wrap_script("haml_temp", @to_close_
queue.size)} << \"\\n\"")
0
+ push_visible("#{wrap_script("haml_temp", @to_close_
stack.size)} << \"\\n\"")
0
@@ -147,11 +147,11 @@ module Haml #:nodoc:
0
def open_tag(name, attributes = {})
0
push_text "<#{name.to_s}#{build_attributes(attributes)}>"
0
- @to_close_
queue.push name
0
+ @to_close_
stack.push name
0
- push_text "</#{@to_close_
queue.pop}>"
0
+ push_text "</#{@to_close_
stack.pop}>"
0
def one_line_tag(name, value, attributes = {})
Comments
No one has commented yet.