Class: Jekyll::Page

Inherits:
Object
  • Object
show all
Includes:
Compressor
Defined in:
lib/jekyll-minifier.rb

Instance Method Summary collapse

Methods included from Compressor

#exclude?, #output_css, #output_file, #output_html, #output_js

Instance Method Details

#write(dest) ⇒ Object


67
68
69
70
71
72
73
74
# File 'lib/jekyll-minifier.rb', line 67

def write(dest)
  dest_path = destination(dest)
  if exclude?(dest, dest_path)
    output_file(dest_path, output)
  else
    output_html(dest_path, output)
  end
end