Sha256: fbde727a2d8af0b76629b322b74d15b9fad3d3d47a39e8cb547a290f98cd0864
Contents?: true
Size: 455 Bytes
Versions: 12
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true require 'pandoc-ruby' module DocumentExporter class Docx def initialize(document) @document = document end def export PandocRuby.convert content, from: :html, to: :docx end private def content @content ||= ApplicationController.render( layout: 'ld_docx', locals: { :@document => @document }, template: 'documents/docx/export' ) end end end
Version data entries
12 entries across 12 versions & 1 rubygems