Update sample to use cleaner syntax
This commit is contained in:
+3
-2
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user