{"id":22998229,"url":"https://github.com/uswitch/rack-ssi","last_synced_at":"2025-08-28T08:18:33.920Z","repository":{"id":4206155,"uuid":"5326101","full_name":"uswitch/rack-ssi","owner":"uswitch","description":"Rack middleware for SSI processing, based on nginx HttpSsiModule","archived":false,"fork":false,"pushed_at":"2020-11-02T16:05:35.000Z","size":31,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-08-14T00:36:21.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uswitch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-07T09:33:41.000Z","updated_at":"2019-09-03T08:37:30.000Z","dependencies_parsed_at":"2022-08-20T15:20:56.795Z","dependency_job_id":null,"html_url":"https://github.com/uswitch/rack-ssi","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/uswitch/rack-ssi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Frack-ssi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Frack-ssi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Frack-ssi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Frack-ssi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uswitch","download_url":"https://codeload.github.com/uswitch/rack-ssi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uswitch%2Frack-ssi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272468535,"owners_count":24939747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-15T06:12:14.522Z","updated_at":"2025-08-28T08:18:33.904Z","avatar_url":"https://github.com/uswitch.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rack::SSI\n\nRack middleware for processing SSI based on the [nginx HttpSsiModule](http://wiki.nginx.org/HttpSsiModule).\nDirectives currently supported: `block` and `include`\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'rack_ssi'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install rack_ssi\n\n## Usage\n\n    require 'rack_ssi'\n\n### Sinatra\n```ruby\nconfigure do\n  use Rack::SSI, {\n    :logging =\u003e :on,\n    :when =\u003e lambda {|env| not env['SOME_CUSTOM_HEADER'] == 'ON'},\n    :locations =\u003e {\n      %r{^/includes} =\u003e \"http://includes.mydomain.com\",\n      %r{\\A/path/} =\u003e -\u003e(location) { \"http://host#{rewrite(location)}\" },\n    },\n    headers: -\u003e(env) { hash_of_headers(env) }, # by default bypasses Cookies\n  }\nend\n```\n### Rails\n```ruby\nconfig.middleware.use Rack::SSI, { ... }\n```\n\n#### Haml\n\nTo use includes in your HAML, the following should work ok:\n\n```ruby\n!!!\n%html{:xmlns =\u003e \"http://www.w3.org/1999/xhtml\"}\n  %head\n    %title My site\n      / #include file=\"/includes/header.html\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Frack-ssi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuswitch%2Frack-ssi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuswitch%2Frack-ssi/lists"}