Browse files

add installation instructions to README

  • Loading branch information...
1 parent 9002a95 commit 06e5f42722ef250b49c275bcd6ed9d37f6c6a92e S. Brent Faulkner committed Mar 11, 2009
Showing with 15 additions and 11 deletions.
  1. +15 −11 README.rdoc
View
26 README.rdoc
@@ -3,23 +3,27 @@
sinatra-prawn is an extension for sinatra to enable rendering of pdf files
using prawn templates.
+== Installation
+
+ sudo gem install sbfaulkner-sinatra-prawn -s http://gems.github.com
+
== Example
- require 'rubygems'
- require 'sinatra'
- require 'sinatra/prawn'
+ require 'rubygems'
+ require 'sinatra'
+ require 'sinatra/prawn'
- set :prawn, { :page_layout => :landscape }
+ set :prawn, { :page_layout => :landscape }
- get '/' do
- content_type 'application/pdf'
- prawn :pdf
- end
+ get '/' do
+ content_type 'application/pdf'
+ prawn :pdf
+ end
- __END__
+ __END__
- @@ pdf
- pdf.text "Hello world!!!!!"
+ @@ pdf
+ pdf.text "Hello world!!!!!"
== Legal

0 comments on commit 06e5f42

Please sign in to comment.