Guest User

Untitled

a guest
Jun 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. config.middleware.use Rack::XSLView,
  2. :myxsl => XML::XSLT.new(),
  3. :noxsl => ['/raw/', '/s/js/', '/s/css/', '/s/img/'],
  4. :passenv => ['PATH_INFO', 'RACK_MOUNT_PATH', 'RACK_ENV'],
  5. :xslfile => File.open(myxslfile) {|f| f.read },
  6. :excludehtml => false,
  7. :reload => true,
  8. :tidy => { :doctype => 'omit',
  9. :numeric_entities => 1,
  10. :drop_proprietary_attributes => 1,
  11. :preserve_entities => 0,
  12. :input_encoding => 'utf8',
  13. :char_encoding => 'utf8',
  14. :output_encoding => 'utf8',
  15. :error_file => '/tmp/tidyerr.txt',
  16. :force_output => 1,
  17. :alt_text => '',
  18. :tidy_mark => 0,
  19. :logical_emphasis => 1,
  20. }
Add Comment
Please, Sign In to add comment