No commit activity in last 3 years
No release in over 3 years
Sinatra extension to add support for pdf rendering with Prawn templates.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

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

Installation from bundler¶ ↑

add these lines to your project Gemfile

source "http://gems.github.com"
gem  "sbfaulkner-sinatra-prawn"

and run

bundle install

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