Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Building html site mapsby dimar (Curate) |
on Jan 30, 2005 at 17:33 UTC ( [id://426399]=note: print w/replies, xml ) | Need Help?? |
... and in addition to Template::Toolkit and the other fine and dandy modules out there ... you might consider the fine and dandy language known as "perl" (aka "Perl", aka "PERL"). (Who woulda imagined it!) Straight out of the box, you can write perl code that "cleans up" all that code you have inherited, and encourages all that great stylesheet conformity, and all that great MVC separation, and whips up a hot batch of any other buzzword-soup-of-the-day you may want to serve up. Here is an example that is all plain perl code (with one added subroutine) that keeps our HTML template looking more like HTML than like perl (instead of the other way around).
which gives us something akin to ...
A ||
B ||
C ||
D ||
E ||
F ||
G ||
H ||
I ||
J ||
K ||
L ||
M ||
N ||
O ||
P ||
Q ||
R ||
S ||
T ||
U ||
V ||
W ||
X ||
Y ||
Z ||
AafricaafoneaftwoafthreeasiaasoneastwoBbelgiumbeonebrazilbrone
In Section
Seekers of Perl Wisdom
|
|