Class: Jekyll::ConvertiblePage
- Inherits:
-
Object
- Object
- Jekyll::ConvertiblePage
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
45
46
47
48
49
50
51
52
|
# File 'lib/jekyll-minify-html.rb', line 45
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
|