Sha256: 6d24177053c7b8647fd23d39d8a3a2458a7cf4d2502af4d32943a917441873ea
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
# PrinceXML Ruby interface. # http://www.princexml.com # # Library by Subimage Interactive - http://www.subimage.com # # # USAGE # ----------------------------------------------------------------------------- # princely = Princely.new # html_string = render_to_string(:template => 'some_document') # send_data( # princely.pdf_from_string(html_string), # :filename => 'some_document.pdf' # :type => 'application/pdf' # ) # require 'logger' require 'pathname' require 'princely/rails' if defined?(Rails) module Princely autoload :StdoutLogger, 'princely/stdout_logger' autoload :AssetSupport, 'princely/asset_support' autoload :Pdf, 'princely/pdf' autoload :Logging, 'princely/logging' autoload :Executable, 'princely/executable' class << self def executable @custom_executable || Princely::Executable.new end def executable=(custom_executable) @custom_executable = custom_executable end def root Pathname.new(File.expand_path('../', __FILE__)) end def ruby_platform RUBY_PLATFORM end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
princely-2.0.2 | lib/princely.rb |
princely-2.0.1 | lib/princely.rb |
princely-2.0.0 | lib/princely.rb |