Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^3: Code and html separation - always or mostly doable?by saberworks (Curate) |
on Jun 17, 2004 at 05:53 UTC ( [id://367540]=note: print w/replies, xml ) | Need Help?? |
Both of the above are fine for two colors, but in my code, you can easily add an arbitrary number of colors and it will still work. I think template systems should provide functionality to handle very common cases such as this. Maybe something like (haven't used html::template in forever so I don't remember the syntax for loops, but I'll guess):
I guess I could add it ;)
In Section
Seekers of Perl Wisdom
|
|