Skip to content
Browse files

add glorify support

  • Loading branch information...
1 parent 54bb15b commit ebfbf9aaff541bfccf6dd4f1ce2768409d68dd3a @zzak zzak committed Mar 16, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +3 −1 app.rb
View
2 Gemfile
@@ -1,8 +1,8 @@
source "https://rubygems.org"
gem "sinatra"
gem "sass"
-gem "rdiscount"
gem "rack-cache"
gem "thin"
gem "json"
gem "slim"
+gem "glorify"
View
4 app.rb
@@ -1,9 +1,9 @@
require 'sinatra'
-require 'rdiscount'
require 'sass'
require 'json'
require 'open-uri'
require 'slim'
+require 'glorify'
set :public_folder, File.dirname(__FILE__) + '/public'
configure :production do
@@ -19,6 +19,7 @@
end
end
+Tilt.prefer Sinatra::Glorify::Template
set :markdown, :layout_engine => :slim
set :views, File.dirname(__FILE__)
set :ignored_dirs, %w[tmp log config public bin]
@@ -68,6 +69,7 @@
title Sinatra Recipes
link rel="stylesheet" type="text/css" href="/stylesheets/styles.css"
link rel="stylesheet" type="text/css" href="/stylesheets/chosen.css"
+ link rel="stylesheet" type="text/css" href="/pygments.css"
link rel="shortcut icon" href="https://github.com/sinatra/resources/raw/master/logo/favicon.ico"
script src="/javascripts/scale.fix.js"
script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"

0 comments on commit ebfbf9a

Please sign in to comment.
Something went wrong with that request. Please try again.