Does anyone have any sudgestions as to how to process template tokens and instructions when building a template system? I can think of several ways to impliment it, but I'm concerned about what will be the most efficient method, since it's something that this system will constantly be doing.
My first thought was to have instructions surrounded by some token, maybe a couple characters, and then explode the file on that token, but that doesn't specify which part of the file the instructions vs. the content is in. If I use some directional tokens, like tags, I'm afraid I wont write it efficiently.
Any thoughts?
Thanks, Matt