Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mdxi (4658)

  (email not shown publicly)

Journal of mdxi (4658)

Friday November 21, 2003
03:12 AM


[ #15918 ]

My personal site (the one linked to over on the right) has been nagging at me for quite some time. I wanted to make it easier to find stuff, and also to have autogenerated "last mod" times on things that should have them. Tonight I finally sat down and banged out a really ugly solution that does a fairly good job for a first whack.

One thing I *didn't* want was a CMS; I wanted an intelligent index page generator. And I didn't want dynamic (that is: via apache) generation; I wanted something I could call from the shell script that rsyncs my websites, and have it all happen at once.

So I sat down and whipped up a mini-markup language and an exceedingly stupid parser to handle it, /et viola/, new homepage which doesn't involve typing any HTML.

It can do headers, file import, lists (all 3 HTML types), tables, links, and escape its special characters. It generates validated, properly-nested XHTML1.1, and the parser weighs in at 5K of very ugly, uncommented code. Oh, and its markups can be nested due to abusing $_ and reading from filehandles that are controlling loops in new and exiting ways :D

It is, due to the vagarities of my project naming scheme, called "egg", and it's the last thing the world needs, but it was fun.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.