You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ooh, ERB for layouts would be awesome! It would move much of my positioning code out of the deck.rb and into the layout, where it belongs!
For example, If I want to draw a circle around some text. I could easily use ruby expressions to offset the circle so that its origin is positioned correctly to make the circle go around the text.
Actually, you don't need ERB for that situation - use extends:
SomeText:
x: 50y: 50SomeTextCircle:
extends: SomeTextx: -= 20 # in yaml this is a string, but it gets processed as a part of processing "extends"y: -= 20
Cairo doesn't do that normally. Maybe make this a configurable setting in config.yml so it's easier to place.
The text was updated successfully, but these errors were encountered: