Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/trunk/actionpack/lib/action_view/template_handler.rb

Revision 8976, 477 bytes (checked in by nzkoz, 7 months ago)

Refactor partial rendering into a PartialTemplate class. [Pratik]

Line 
1 module ActionView
2   class TemplateHandler
3
4     def self.line_offset
5       0
6     end
7
8     def self.compilable?
9       false
10     end
11
12     def initialize(view)
13       @view = view
14     end
15
16     def render(template)
17     end
18
19     def compile(template)
20     end
21
22     def compilable?
23       self.class.compilable?
24     end
25
26     def line_offset
27       self.class.line_offset
28     end
29
30     # Called by CacheHelper#cache
31     def cache_fragment(block, name = {}, options = nil)
32     end
33   end
34 end
Note: See TracBrowser for help on using the browser.