Class: Dimples::Sources::Layout
- Defined in:
- lib/dimples/sources/layout.rb
Overview
A class for a single layout used on a site.
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#assign_metadata, #initialize, #output_directory, #parse_metadata, #render, #url_for, #write
Constructor Details
This class inherits a constructor from Dimples::Sources::Base
Instance Method Details
#template ⇒ Object
7 8 9 |
# File 'lib/dimples/sources/layout.rb', line 7 def template @template ||= Tilt::ERBTemplate.new { @contents } end |