Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.
/ sinatra-prawn Public archive
forked from sbfaulkner/sinatra-prawn

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

License

Notifications You must be signed in to change notification settings

sinatra/sinatra-prawn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 <[email protected]>

License

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published