examples/app.rb in wbzyl-rack-codehighlighter-0.1.6 vs examples/app.rb in wbzyl-rack-codehighlighter-0.1.8
- old
+ new
@@ -3,19 +3,15 @@
path = File.join(File.expand_path(File.dirname(__FILE__)), "..", "lib")
$:.unshift(path) unless $:.include?(path)
require 'rubygems'
require 'sinatra'
-require 'rdiscount'
-gem 'wbzyl-sinatra-rdiscount'
-require 'sinatra/rdiscount'
+require 'rack/codehighlighter'
-require 'codehighlighter-middleware'
-
require 'coderay' # Coderay
require 'syntax/convertors/html' # Syntax
require 'uv' # Ultraviolet
get "/" do
- rdiscount :index
+ erb :index
end