public
Rubygem
Fork of nex3/haml
Description: HTML Abstraction Markup Language - A Markup Haiku
Homepage: http://haml.hamptoncatlin.com
Clone URL: git://github.com/chriseppstein/haml.git
ActionView::Base#render_with_haml passes along blocks as well. Thanks to 
Jonathan del Strother for the patch.


git-svn-id: svn://hamptoncatlin.com/haml/tags/stable@603 
7063305b-7217-0410-af8c-cdc13e5119b9
nex3 (author)
Fri Sep 07 02:13:03 -0700 2007
commit  83400be434a5ba9f6983355024d9d24c7b5314b9
tree    2a8723ade33fa375e17314e65de9bb684d1b024f
parent  ed47b197e795a50582c765052079fdfb70e55c83
...
11
12
13
14
 
15
16
17
 
18
19
20
...
11
12
13
 
14
15
16
 
17
18
19
20
0
@@ -11,10 +11,10 @@ end
0
 if action_view_included
0
   module ActionView
0
     class Base # :nodoc:
0
- def render_with_haml(*args)
0
+ def render_with_haml(*args, &block)
0
         was_haml = is_haml?
0
         @haml_is_haml = false
0
- res = render_without_haml(*args)
0
+ res = render_without_haml(*args, &block)
0
         @haml_is_haml = was_haml
0
         res
0
       end

Comments

    No one has commented yet.