Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (10 sloc) 0.298 kB
require 'rubygems'
require 'sinatra'
get '/:template' do
buffer = ''
name = File.expand_path("../#{params[:template]}", __FILE__)
File.read(name).each do |line|
buffer += line.gsub(/https:\/\/github.com\/snusnu\/rails-templates\/raw\/master/, 'http://localhost:4567')
end
buffer
end
Jump to Line
Something went wrong with that request. Please try again.