I've been playing with html <canvas>'s today, and they come with a
handy pair of methods, save, and restore. There's a stack of states,
and each time you save, everything about the current environment is
pushed in to that stack, and when you restore, the last thing added to
the stack is removed and brought back to life. Hrmmmm.
I'm unsure if this would work in shoes, but perhaps we could replicate
this with something akin to:
isolate do
... stuff ...
end
And in that stuffy place inside, we could go wild, changing global
styles and messing about as much as we want and after, all the styles
(like link colours and stuff) would go back to how they were before.
Do styles and stuff work procedurally like this in shoes? Would
changing the link colour for instance, after adding a link, change
that original link's colour?
Something to ponder regardless. A nifty addition if possible, to
further modularize code, especially in larger shoes apps, like, say,
everyone's favorite quirky IDE. :)
—
The Awesomest Pony.