in reply to Custom HTML Tags

Don't get me wrong I'm all for reinventing wheels especially when it helps you to learn something but I would suggest that you take a look at things that have already done this. My personal favorite is HTML::Template

You might be able to build off of that to add your own tags or just use what's already there

Some clever or funny quote here.