Module: Hyde::Page

Defined in:
lib/hyde-page-html.rb

Defined Under Namespace

Classes: Html

Class Method Summary collapse

Class Method Details

.cacheObject



21
22
23
# File 'lib/hyde-page-html.rb', line 21

def self.cache
  Jekyll::Cache.new('HydePageHtml')
end

.cache_delete(key) ⇒ Object



25
26
27
28
29
# File 'lib/hyde-page-html.rb', line 25

def self.cache_delete(key)
  return unless cache.key?(key)

  cache.delete(key)
end

.handler(doc) ⇒ Object



31
32
33
34
35
36
# File 'lib/hyde-page-html.rb', line 31

def self.handler(doc)
  # filter out non-html pages
  return doc.output unless doc.output_ext == '.html'

  Hyde::Page::Html.new(doc, cache).run
end