Class: Jekyll::Terminal::StylesheetPage

Inherits:
Page
  • Object
show all
Defined in:
lib/jekyll-terminal.rb

Overview

Page that reads its contents from the Gem ‘terminal.sass` file.

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir) ⇒ StylesheetPage

Returns a new instance of StylesheetPage.



16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/jekyll-terminal.rb', line 16

def initialize(site, base, dir)
  @site = site
  @base = base
  @dir = dir
  @name = Jekyll::Terminal::basename(site)+ '.scss'

  self.process(@name)

  filepath = File.join(File.dirname(File.expand_path(__FILE__)), @name)
  self.content = File.read(filepath, Utils.merged_file_read_opts(self.site, {}))
  self.data ||= {}
end