The Wayback Machine - https://web.archive.org/web/20201206154352/https://github.com/sinatra/sinatra-prawn
Skip to content
master
Go to file
Code
This branch is 6 commits behind sbfaulkner:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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__
Author
  1. Brent Faulkner <brentf@unwwwired.net>

License

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

About

Sinatra extension to add support for pdf rendering with Prawn templates.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.