Post-processing for HTML & XML documents via Nokogiri. No more String#gsub in Rack middlewares!
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
lib
spec
.gitignore
CHANGELOG
Gemfile
LICENSE
README.textile
TODO.txt
deps.rip
multigiri.gemspec
multigiri.pre.gemspec
tasks.rb

README.textile

About

Usage

Take a look at an example. The point is:

use Multigiri::HTML do
  use Multigiri::HTML5::Forms
  use Multigiri::HTML5::Hidden
  use Multigiri::EmailObfuscator
  use Multigiri::GoogleAnalytics, :my_tracking_code
end

# RSS / Atom feeds processing
use Multigiri::XML, content_types: ["application/rss+xml", "application/atom+xml"] do
  # TODO
end

# Generic XML processing
use Multigiri::XML, content_types: [/\/xml$/] do
  # TODO
end

Links