Permalink
Browse files

Added "classic" app instructions to README

  • Loading branch information...
kematzy committed May 14, 2010
1 parent cd0c002 commit 3b34edeb8a25c1645662a1c7d7fb8578a02ef68f
Showing with 16 additions and 0 deletions.
  1. +16 −0 README.rdoc
View
@@ -69,6 +69,22 @@ the extension in your sub-classed Sinatra app:
end
+
+In your "classic" Sinatra app, you just require the extension and set some key settings, like this:
+
+ require 'rubygems'
+ require 'sinatra'
+ require 'sinatra/cache'
+
+ # NB! you need to set the root of the app first
+ set :root, '/path/2/the/root/of/your/app'
+ set :public, '/path/2/public'
+
+ set :cache_enabled, true # turn it on
+
+ <snip...>
+
+
That's more or less it.

0 comments on commit 3b34ede

Please sign in to comment.