public
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Prettying up a single line.... yes, I'm one of *those*.



git-svn-id: svn://hamptoncatlin.com/haml/trunk@53 
7063305b-7217-0410-af8c-cdc13e5119b9
hcatlin (author)
Fri Sep 29 12:59:21 -0700 2006
commit  c97a1381cc9c759d25b8f9fa5d5c8cafe7f1cd7b
tree    7091334824c98f044591a88eab3187a60748bd74
parent  0fde51795d69f35be3b8d72215a5d82701c69f9b
...
3
4
5
6
 
7
8
9
...
17
18
19
20
21
 
22
23
 
24
25
26
...
3
4
5
 
6
7
8
9
...
17
18
19
 
 
20
21
 
22
23
24
25
0
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/helpers'
0
 module Haml #:nodoc:
0
   class Engine
0
     include Haml::Helpers
0
-
0
+
0
     # Set the maximum length for a line to be considered a one-liner
0
     # Lines <= the maximum will be rendered on one line,
0
     # i.e. <tt><p>Hello world</p></tt>
0
@@ -17,10 +17,9 @@ module Haml #:nodoc:
0
       options.each { |k,v| eval("@#{k} = v") }
0
 
0
       @template = template #String
0
- @result = String.new
0
- @to_close_queue = []
0
+ @result, @to_close_queue = String.new, []
0
     end
0
-
0
+
0
     def to_html
0
       # Process each line of the template
0
       @template.each_with_index do |line, index|

Comments

    No one has commented yet.