Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 322 Bytes
# This example just serves up any SVGs that you put into this directory.
require 'rasterday'
b = {
use Rasterday
use Rack::Static,
urls: [/.*\.svg$/],
root: File.dirname(__FILE__)
run lambda { |*|"You'll want to navigate to an SVG instead of the root.")
run b