Class: Guider::DefaultTemplate

Inherits:
Template
  • Object
show all
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

Methods inherited from Template

#apply

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, options)
  super(path, {
    :title => options[:title],
    :footer => options[:footer],
    :social => Social.to_html(options[:social]),
    :search => Search.to_html(options[:search]),
    :analytics => Analytics.to_html(options[:analytics]),
    :prettify => Prettify.to_html,
    :font => Font.to_html,
  })
end