Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.548 kb
require "rubygems"
require 'rack'
require 'rack/contrib/try_static'
require "bundler/setup"
require 'slimmer'
use Slimmer::App, asset_host: "https://static.preview.alphagov.co.uk/"
map "/designprinciples" do
run Rack::File.new("_site/index.html")
end
map "/designprinciples/styleguide" do
run Rack::File.new("_site/styleguide.html")
end
#use Rack::TryStatic, root: "_site/", urls: %w[/], :try => ['.html', 'index.html', '/index.html']
# otherwise 404 NotFound
#run lambda { [404, {'Content-Type' => 'text/plain'}, ['whoops! Not Found']] }
Jump to Line
Something went wrong with that request. Please try again.