public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Pass template object to Handler#compile
lifo (author)
Thu Apr 24 08:58:09 -0700 2008
commit  1959db324653d5db345b935c9d2696c544d836af
tree    5cc858e7a41ca4ee7be4f89713d401b5fe51a206
parent  a0748848b646fdda5dd8e4c93b5bd9a0363738eb
...
13
14
15
16
 
17
18
19
...
13
14
15
 
16
17
18
19
0
@@ -13,7 +13,7 @@
0
         content_type_handler = (@view.send!(:controller).respond_to?(:response) ? "controller.response" : "controller")
0
         "#{content_type_handler}.content_type ||= Mime::XML\n" +
0
         "xml = ::Builder::XmlMarkup.new(:indent => 2)\n" +
0
- templatee +
0
+ template.source +
0
         "\nxml.target!\n"
0
       end
0
 
...
95
96
97
98
 
99
100
101
...
95
96
97
 
98
99
100
101
0
@@ -95,7 +95,7 @@
0
 
0
       # Method to create the source code for a given template.
0
       def create_template_source(template, render_symbol)
0
- body = compile(template.source)
0
+ body = compile(templatee)
0
 
0
         self.template_args[render_symbol] ||= {}
0
         locals_keys = self.template_args[render_symbol].keys | template.locals.keys
...
43
44
45
46
 
47
48
49
...
43
44
45
 
46
47
48
49
0
@@ -43,7 +43,7 @@
0
       include Compilable
0
 
0
       def compile(template)
0
- ::ERB.new(templatee, nil, @view.erb_trim_mode).src
0
+ ::ERB.new(template.source, nil, @view.erb_trim_mode).src
0
       end
0
 
0
       def cache_fragment(block, name = {}, options = nil) #:nodoc:
...
9
10
11
12
 
13
14
15
...
9
10
11
 
12
13
14
15
0
@@ -9,7 +9,7 @@
0
 
0
       def compile(template)
0
         "controller.response.content_type ||= Mime::JS\n" +
0
- "update_page do |page|\n#{templatee}\nend"
0
+ "update_page do |page|\n#{template.source}\nend"
0
       end
0
 
0
       def cache_fragment(block, name = {}, options = nil) #:nodoc:

Comments

    No one has commented yet.