Sha256: 9b875a977e9416dfec5eba18fe313c7f5e103aadb72c450b61592d3105d82e50

Contents?: true

Size: 287 Bytes

Versions: 2

Compression:

Stored size: 287 Bytes

Contents

module Docxtor2
  class Generator
    class << self
      def generate(template, &block)
        parts = TemplateParser.parse(template)
        document = DocumentBuilder.build(&block);
        package = Package.new(parts, document)
        package.to_stream
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
docxtor2-0.0.9 lib/docxtor2/generator.rb
docxtor2-0.1.0 lib/docxtor2/generator.rb