public
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/nex3/haml.git
Add an internal_compile wrapper around Haml::Filters::Base#compile.

This way, resolve_lazy_requires is always run.
nex3 (author)
Sat Feb 23 01:13:36 -0800 2008
commit  bbdb5882fda9aae45a24927614433badb9bee9e8
tree    aa39e6727594c7d0170507d18cf6785c4c31873c
parent  873623296eabd5e461938d4be7e60c7df467f7a2
...
41
42
43
 
 
 
 
 
44
45
46
...
41
42
43
44
45
46
47
48
49
50
51
0
@@ -41,6 +41,11 @@ module Haml
0
         raise HamlError.new("#{self.inspect}#render not defined!")
0
       end
0
 
0
+ def internal_compile(*args) # :nodoc:
0
+ resolve_lazy_requires
0
+ compile(*args)
0
+ end
0
+
0
       # compile should be overridden when a filter needs to have access
0
       # to the Haml evaluation context.
0
       # Rather than applying a filter to a string at compile-time,
...
394
395
396
397
 
398
399
400
...
394
395
396
 
397
398
399
400
0
@@ -394,7 +394,7 @@ END
0
     # Closes a filtered block.
0
     def close_filtered(filter)
0
       @flat_spaces = -1
0
- filter.compile(self, @filter_buffer)
0
+ filter.internal_compile(self, @filter_buffer)
0
       @filter_buffer = nil
0
       @template_tabs -= 1
0
     end

Comments

    No one has commented yet.