Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove broken tidy beautifier and bump to 0.0.17

  • Loading branch information...
commit 61ead8e0ec6740dc12c54e80b4a8d42c7f5aa020 1 parent d467efd
@svenfuchs authored
View
1  lib/minimal/template.rb
@@ -1,5 +1,4 @@
class Minimal::Template
- autoload :BeautifyHtml, 'minimal/template/beautify_html'
autoload :FormBuilderProxy, 'minimal/template/form_builder_proxy'
autoload :Handler, 'minimal/template/handler'
autoload :TranslatedTags, 'minimal/template/translated_tags'
View
23 lib/minimal/template/beautify_html.rb
@@ -1,23 +0,0 @@
-require 'tidy_ffi'
-
-module Minimal::Template::BeautifyHtml
- OPTIONS = {
- :indent => 'yes',
- :indent_spaces => '2',
- :wrap => '0',
- :tidy_mark => false,
- :char_encoding => 'utf8',
- :input_encoding => 'utf8',
- :output_encoding => 'utf8'
- }
-
- class << self
- def after(controller)
- controller.response.body = tidy(controller.response.body) if controller.request.format.html?
- end
-
- def tidy(html)
- TidyFFI::Tidy.new(html, OPTIONS).clean
- end
- end
-end
View
2  lib/minimal/version.rb
@@ -1,3 +1,3 @@
module Minimal
- VERSION = "0.0.16"
+ VERSION = "0.0.17"
end
Please sign in to comment.
Something went wrong with that request. Please try again.