lib/latexpdf.rb in latexpdf-0.4.5 vs lib/latexpdf.rb in latexpdf-0.4.6
- old
+ new
@@ -34,14 +34,14 @@
def self.logger
@logger ||= configuration.logger
end
- def self.compile(tex)
+ def self.compile(tex, target=nil)
generator = PdfGenerator.new(tex)
begin
- generator.generate
- generator.content
+ generator.generate target
+ generator.content unless target
ensure
generator.cleanup
end
end
end