Custom Template-Style Tags



Greetings to all,

I am conceiving a nifty little templating engine (yeah, another one)
for use in PHP applications. I have found that the code itself seems to
be standard enough in the applications I do that I could potentially
make my life a ton easier by being able to chunk code in different
pieces, and use my own tags in a template style to call for code when
need be. Similar to the early generations of MovableType when the code
for HTML pages was generated through a CGI app that replaced their
<$MT_something$> tags. I would like to do this in PHP, keeping the .php
extension on my files and making it as non-invasive as possible. I'm
thinking a standard include at the beginning of the pages, and my
little snippets along the way.

The problem I'm having is I don't know how to parse out for custom
tags. I'm hesitant to just use functions everywhere since it defeats
the purpose if I have to put <?php...?> everytime and call to a
function, but as of right now, that's all I've got. I'm looking for
suggestions - if you have any, I would greatly appreciate to hear them.


Gratitude extended in advance.

..eddieroger

.



Relevant Pages