Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Tidy library interface via FFI
Ruby
branch: master
Failed to load latest commit information.
lib
spec Downcase enum values on validation
.gitignore Port specs to rspec.
.rspec Port specs to rspec.
.travis.yml install libtidy in travis
CHANGELOG Bump version
Gemfile Port specs to rspec.
LICENSE Initial commit
Manifest Updated Rakefile and Manifest to reflect README rename
README.rdoc Update readme file
Rakefile Port specs to rspec.
tidy_ffi.gemspec Allow wider range of FFI dependency

README.rdoc

Tidy FFI

What is it all about?

I wanted to have a clean and simple tidy library. For example:

TidyFFI::Tidy.new('a string').clean

For now it can't do anything else than clean (and saves errors from it) :)

Options

You can use different ways to specify options. These examples produce the same output:

TidyFFI::Tidy.default_options.show_body_only = true
TidyFFI::Tidy.new('test').clean

TidyFFI::Tidy.with_options(:show_body_only => true).new('test').clean

tidy = TidyFFI::Tidy.new('test')
tidy.options.show_body_only = true
tidy.clean

TidyFFI::Tidy.new('test', :show_body_only => true).clean

TidyFFI::Tidy.clean('test', :show_body_only => 1)

Other stuff

And of course, it's depenedent on ffi and libtidy. So make sure they're installed before using the library!

Something went wrong with that request. Please try again.