Class: Renshi::Frameworks::Rails::Plugin
- Inherits:
-
ActionView::TemplateHandler
- Object
- ActionView::TemplateHandler
- Renshi::Frameworks::Rails::Plugin
- Defined in:
- lib/renshi/frameworks/rails.rb
Overview
this is an old, first try of integrating with Rails, without compilable templates use it for older Rails versions (pre 2.2.0, I think).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(view = nil) ⇒ Plugin
constructor
A new instance of Plugin.
- #render(template, local_assigns) ⇒ Object
Constructor Details
#initialize(view = nil) ⇒ Plugin
Returns a new instance of Plugin.
12 13 14 |
# File 'lib/renshi/frameworks/rails.rb', line 12 def initialize(view = nil) @view = view end |
Class Method Details
.call(template) ⇒ Object
8 9 10 |
# File 'lib/renshi/frameworks/rails.rb', line 8 def self.call(template) "#{name}.new(self).render(template, local_assigns)" end |