Browse Source

Update sample to use cleaner syntax

dev
Andy Meneely 11 years ago
parent
commit
78ee185fde
  1. 5
      samples/layouts.rb

5
samples/layouts.rb

@ -1,5 +1,6 @@
# encoding: utf-8 # encoding: utf-8
require 'squib' require 'squib'
require 'pp'
Squib::Deck.new(layout: 'custom-layout.yml') do Squib::Deck.new(layout: 'custom-layout.yml') do
background color: :white background color: :white
@ -28,8 +29,8 @@ Squib::Deck.new(layout: 'custom-layout.yml') do
text str: 'subtitle', layout: 'subtitle' text str: 'subtitle', layout: 'subtitle'
# For debugging purposes, you can always print out the loaded layout # For debugging purposes, you can always print out the loaded layout
#require 'pp' # require 'pp'
#pp @layout # pp layout
save_png prefix: 'layout_' save_png prefix: 'layout_'
end end

Loading…
Cancel
Save