public
Created

Glorify test

  • Download Gist
test_web.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
$: << 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 %>

Put this file the glorify gem dir and run it.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.