Class: Hypertemplate::Hook::Rails::Hypertemplate
- Inherits:
-
Object
- Object
- Hypertemplate::Hook::Rails::Hypertemplate
- Defined in:
- lib/hypertemplate/hook/rails.rb
Class Method Summary collapse
Class Method Details
.call(template) ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'lib/hypertemplate/hook/rails.rb', line 36 def self.call(template) "@content_type_helpers = controller.hypertemplate_registry[self.response.content_type].helper; " + "extend @content_type_helpers; " + "extend Hypertemplate::Hook::Rails::Helpers; " + "code_block = lambda { #{template.source} };" + "builder = code_block.call; " + "builder" end |