Custom Template-Style Tags
- From: "eddieroger" <eddieroger@xxxxxxxxx>
- Date: 29 Jun 2005 21:11:09 -0700
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
.
- Follow-Ups:
- Re: Custom Template-Style Tags
- From: steve
- Re: Custom Template-Style Tags
- Prev by Date: Dont buy Gid php 5
- Next by Date: Re: PHP includes -- unique title and meta tags for each page
- Previous by thread: Dont buy Gid php 5
- Next by thread: Re: Custom Template-Style Tags
- Index(es):
Relevant Pages
|