Class: Fir::ErbAdapter

Inherits:
TemplateAdapter show all
Includes:
Helpers
Defined in:
lib/fir/pages.rb

Direct Known Subclasses

MarkdownAdapter

Instance Method Summary collapse

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(options, &block)
	render_erb(source, options, &block)
end