Class: Dimples::Sources::Layout

Inherits:
Base
  • Object
show all
Defined in:
lib/dimples/sources/layout.rb

Overview

A class for a single layout used on a site.

Constant Summary

Constants inherited from Base

Base::FRONT_MATTER_PATTERN

Instance Attribute Summary

Attributes inherited from Base

#contents, #metadata, #path

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

#templateObject



7
8
9
# File 'lib/dimples/sources/layout.rb', line 7

def template
  @template ||= Tilt::ERBTemplate.new { @contents }
end