public
Rubygem
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Search Repo:
Make sure filter preserving works with variable interpolation.
nex3 (author)
Thu May 15 11:34:12 -0700 2008
commit  e2b61eb1e399f478be77c0d045c5d0abedb8279a
tree    7d19df42a27901212a9cd052c5b1ff6f38461ba5
parent  fc3d3d48df84276cd34849580f1ea711de8f44fd
...
64
65
66
67
 
 
 
68
69
70
...
64
65
66
 
67
68
69
70
71
72
0
@@ -64,7 +64,9 @@
0
           if contains_interpolation?(text)
0
             return if options[:suppress_eval]
0
 
0
- push_script("#{filter.inspect}.render(#{unescape_interpolation(text)})", false)
0
+ push_script(<<RUBY, false)
0
+find_and_preserve(#{filter.inspect}.render(#{unescape_interpolation(text)}))
0
+RUBY
0
             return
0
           end
0
 
...
73
74
75
76
 
77
78
79
...
73
74
75
 
76
77
78
79
0
@@ -73,7 +73,7 @@
0
     I like preserved text:
0
 
0
       Foo
0
- Bar!
0
+ #{"Bar"}!
0
       Baz
0
 
0
 :markdown

Comments

    No one has commented yet.