mirror of
https://github.com/lloeki/tilt-pdf.git
synced 2025-12-06 10:34:41 +01:00
split tilt-pdf-rails out of tilt-pdf
This commit is contained in:
parent
844f5f1036
commit
464cc22f22
4 changed files with 6 additions and 39 deletions
|
|
@ -1,24 +0,0 @@
|
|||
require 'tilt-pdf'
|
||||
|
||||
module ActionView
|
||||
class Template
|
||||
module Handlers
|
||||
class PDFTemplate
|
||||
class_attribute :default_format
|
||||
self.default_format = :pdf
|
||||
|
||||
def call(template)
|
||||
"Tilt.new('#{template.identifier}').render(self)"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
register_template_handler :rpdf, Handlers::PDFTemplate.new
|
||||
end
|
||||
end
|
||||
|
||||
module Tilt::PDFTemplate::Rails
|
||||
class Railtie < ::Rails::Railtie
|
||||
config.app_generators.template_engine :rpdf
|
||||
end
|
||||
end
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
module Tilt
|
||||
module PDF
|
||||
VERSION = '0.9.0'
|
||||
VERSION = '0.10.0'
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue