From 06e5f42722ef250b49c275bcd6ed9d37f6c6a92e Mon Sep 17 00:00:00 2001 From: "S. Brent Faulkner" Date: Wed, 11 Mar 2009 23:52:48 -0400 Subject: [PATCH] add installation instructions to README --- README.rdoc | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/README.rdoc b/README.rdoc index d37c09c..a971827 100644 --- a/README.rdoc +++ b/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