[Solar-talk] layout generator
Rodrigo Moraes
rodrigo.moraes at gmail.com
Fri Aug 4 07:09:15 PDT 2006
On 8/4/06, Mike Naberezny wrote:
> Paul M Jones wrote:
> > Rodrigo wins the award for best inline comment of the week, in the
> > OneTrueLayout helper:
> >> // DANGER, OLD CODE!!! NEED REFACTORING! NO, A COMPLETE REWRITE!
> >> // DON'T LOOK! IT BURNS! AAAH! Ok. You were warned.
> >>
>
> What, no @todo tag? ;-)
Hehe. That helper really mixes a CSS rules creator (with insane array
manipulation, which is the part that burns) and a simple HTML
generator (which could be in the layout file itself). The whole thing
should be dropped; I wanted to quickly demonstrate something I had in
my lab. This would be appropriate:
@todo Delete from repository
In a more advanced example, I've added YUI's colorpicker and other
fancy things to the interface so you can define colors, backgrounds,
fonts and paddings on-the-fly, seeing they applied to the page as you
play with the options. But this would be a whole app, I think.
rodrigo
More information about the solar-talk
mailing list