Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Sinatra extension to add support for pdf rendering with Prawn templates.
Branch: master
Pull request Compare This branch is 6 commits behind sbfaulkner:master.

sinatra 0.9.2 compatibility

latest commit 7db3b5a200
S. Brent Faulkner authored
Failed to load latest commit information.
lib/sinatra sinatra 0.9.2 compatibility
test sinatra 0.9.2 compatibility
.gitignore first working version
CHANGES sinatra 0.9.2 compatibility
LICENSE first working version
README.rdoc add installation instructions to README
Rakefile
TODO sinatra 0.9.2 compatibility
VERSION.yml sinatra 0.9.2 compatibility
sinatra-prawn.gemspec sinatra 0.9.2 compatibility

README.rdoc

sinatra-prawn

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'

set :prawn, { :page_layout => :landscape }

get '/' do
  content_type 'application/pdf'
  prawn :pdf
end

__END__

@@ pdf
pdf.text "Hello world!!!!!"

Legal

Author

  1. Brent Faulkner <brentf@unwwwired.net>

License

Copyright © 2009 unwwwired.net, released under the MIT license

Something went wrong with that request. Please try again.