examples/app.rb in wbzyl-codehighlighter-middleware-0.0.7 vs examples/app.rb in wbzyl-codehighlighter-middleware-0.1.0
- old
+ new
@@ -1,15 +1,21 @@
# -*- coding: utf-8 -*-
+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 'codehighlighter-middleware'
-require 'coderay' # Coderay
-#require 'syntax/convertors/html' # Syntax
-#require 'uv' # Ultraviolet
+require 'coderay' # Coderay
+require 'syntax/convertors/html' # Syntax
+require 'uv' # Ultraviolet
get "/" do
rdiscount :index
end