Sha256: 7281c1caac73aa4cde9a785d9f826de2191b36cbeb79feeddba2fd8166267b5f

Contents?: true

Size: 688 Bytes

Versions: 6

Compression:

Stored size: 688 Bytes

Contents

# encoding: utf-8
#
# Examples for using grid layouts.
#
require File.expand_path(File.join(File.dirname(__FILE__),
                                   %w[.. example_helper]))

Prawn::ManualBuilder::Example.generate("layout.pdf", :page_size => "FOLIO") do

  package "layout" do |p|

    p.example "simple_grid"
    p.example "boxes"
    p.example "content"

    p.intro do
      prose("Prawn has support for two-dimensional grid based layouts out of the box.

      The examples show:")

      list( "How to define the document grid",
            "How to configure the grid rows and columns gutters",
            "How to create boxes according to the grid"
          )
    end

  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
prawn-git-2.0.1 manual/layout/layout.rb
prawn-2.0.1 manual/layout/layout.rb
prawn-2.0.0 manual/layout/layout.rb
prawn-1.3.0 manual/layout/layout.rb
prawn-1.2.1 manual/layout/layout.rb
prawn-1.1.0 manual/layout/layout.rb