Skip to content
/ rack-ssi Public
forked from uswitch/rack-ssi

Rack middleware for SSI processing, based on nginx HttpSsiModule

License

Notifications You must be signed in to change notification settings

tmak/rack-ssi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rack::SSI

Rack middleware for processing SSI based on the nginx HttpSsiModule. Directives currently supported: block and include

Installation

Add this line to your application's Gemfile:

gem 'rack_ssi'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rack_ssi

Usage

require 'rack_ssi'

Sinatra

configure do
  use Rack::SSI, {
    :logging => :on,
    :when => lambda {|env| not env['SOME_CUSTOM_HEADER'] == 'ON'},
    :locations => {
      %r{^/includes} => "http://includes.mydomain.com"
    }
  }
end

Rails

config.middleware.use Rack::SSI, { ... }    

About

Rack middleware for SSI processing, based on nginx HttpSsiModule

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%