Class: Jekyll::Page

Inherits:
Object
  • Object
show all
Includes:
MinifyHTML
Defined in:
lib/jekyll-minify-html.rb

Instance Method Summary collapse

Methods included from MinifyHTML

#output_file, #output_html

Instance Method Details

#write(dest) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/jekyll-minify-html.rb', line 33

def write(dest)
  dest_path = destination(dest)
  if File.extname(dest_path).downcase == '.html'
    output_html(dest_path, output)
  else
    output_file(dest_path, output)
  end
end