Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
add installation instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
S. Brent Faulkner committed Mar 12, 2009
1 parent 9002a95 commit 06e5f42
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions README.rdoc
Expand Up @@ -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

Expand Down

0 comments on commit 06e5f42

Please sign in to comment.