Class: Guider::DefaultTemplate
- Defined in:
- lib/guider/default_template.rb
Overview
Initializes the common Guider template placeholders with default values generated from Guider options.
Instance Method Summary collapse
-
#initialize(path, options) ⇒ DefaultTemplate
constructor
A new instance of DefaultTemplate.
Methods inherited from Template
Constructor Details
#initialize(path, options) ⇒ DefaultTemplate
Returns a new instance of DefaultTemplate.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/guider/default_template.rb', line 12 def initialize(path, ) super(path, { :title => [:title], :footer => [:footer], :social => Social.to_html([:social]), :search => Search.to_html([:search]), :analytics => Analytics.to_html([:analytics]), :prettify => Prettify.to_html, :font => Font.to_html, }) end |