Permalink
Browse files

add an example app

  • Loading branch information...
1 parent 1a76fea commit 4209728ffe76c2d4c2a7c996b4743eca3db5a572 @zzak committed May 25, 2012
Showing with 21 additions and 0 deletions.
  1. +21 −0 example.rb
View
21 example.rb
@@ -0,0 +1,21 @@
+$: << File.expand_path(".") + '/lib'
+require 'sinatra'
+require 'glorify'
+require 'erb'
+
+set :markdown, :layout_engine => :erb
+set :views, File.dirname(__FILE__)
+Tilt.prefer Sinatra::Glorify::Template
+
+get "/" do
+ markdown :README
+end
+
+__END__
+@@layout
+<html>
+ <head>
+ <link href="/pygments.css" media="screen" rel="stylesheet" type="text/css">
+ </head>
+ <body><%= yield %></body>
+</html>

0 comments on commit 4209728

Please sign in to comment.