Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added wkhtmltopdf and told Sinatra the path

  • Loading branch information...
commit 09f0adc621f0a4b9319f4ec2c83bc393b6106173 1 parent c07b27b
@stave stave authored
Showing with 6 additions and 0 deletions.
  1. BIN  bin/wkhtmltopdf-amd64
  2. +6 −0 docs.rb
View
BIN  bin/wkhtmltopdf-amd64
Binary file not shown
View
6 docs.rb
@@ -13,6 +13,12 @@
# :blog => true, :subscribe => false, :support => false, :footer => false #footer true/false if you (or don't) want render the footer
# }
# end
+
+unless development?
+ PDFKit.configure do |config|
+ config.wkhtmltopdf = File.expand_path(File.join( File.dirname(__FILE__), 'bin', 'wkhtmltopdf-amd64')).to_s
+ end
+end
require 'coderay'
require './lib/term.rb'
Please sign in to comment.
Something went wrong with that request. Please try again.