Created
May 12, 2012 08:04
-
-
Save smgt/2665138 to your computer and use it in GitHub Desktop.
Glorify test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$: << 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 %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this file the glorify gem dir and run it.