Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.middleware.use Rack::XSLView,
- :myxsl => XML::XSLT.new(),
- :noxsl => ['/raw/', '/s/js/', '/s/css/', '/s/img/'],
- :passenv => ['PATH_INFO', 'RACK_MOUNT_PATH', 'RACK_ENV'],
- :xslfile => File.open(myxslfile) {|f| f.read },
- :excludehtml => false,
- :reload => true,
- :tidy => { :doctype => 'omit',
- :numeric_entities => 1,
- :drop_proprietary_attributes => 1,
- :preserve_entities => 0,
- :input_encoding => 'utf8',
- :char_encoding => 'utf8',
- :output_encoding => 'utf8',
- :error_file => '/tmp/tidyerr.txt',
- :force_output => 1,
- :alt_text => '',
- :tidy_mark => 0,
- :logical_emphasis => 1,
- }
Add Comment
Please, Sign In to add comment