Class: Fir::ErbAdapter
- Inherits:
-
TemplateAdapter
- Object
- TemplateAdapter
- Fir::ErbAdapter
- Includes:
- Helpers
- Defined in:
- lib/fir/pages.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#render(options, &block) ⇒ Object
If a block is given, it will be included in ERB’s binding.
Methods included from Helpers
#absolutize, #content_tag, #link_to, #menu
Methods inherited from TemplateAdapter
#initialize, #render_with_layout
Constructor Details
This class inherits a constructor from Fir::TemplateAdapter
Instance Method Details
#render(options, &block) ⇒ Object
If a block is given, it will be included in ERB’s binding. Thus, if the template yields, the block given to render will be called.
149 150 151 |
# File 'lib/fir/pages.rb', line 149 def render(, &block) render_erb(source, , &block) end |