Skip to content

@smgt /test_web.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Glorify test
$: << File.expand_path(".") + '/lib'
require 'sinatra'
require 'glorify'
get "/" do
@example = File.open("README.md", "rb").read
erb :index
end
__END__
@@layout
<html><head><link href="/pygments.css" media="screen" rel="stylesheet" type="text/css"><html><head></head><body><%= yield %></body></html>
@@index
<%= glorify @example %>
@smgt
Owner

Put this file the glorify gem dir and run it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.