From: Alex B. <en...@tu...> - 2001-09-19 20:36:33
|
> Hi Alex, > >> yeah, i think we can probably make it happen without forcing xhtml.. > > So, now I have the following picture of BCTagParser in my mind- correct me > if you disagree: > > - parse a textfile with a regex > - if <bc:*> occurs read the hole tag into a buffer > - pass this buffer to the xml parser that processes > the buffer > - the xml parser calls the tag-handling-method (if it is > registered, otherwise ignores) and returns a string > (i.e. generated php) This is al correct, but note that in this case the returned string may be just a string. That's because we'll use the bc:tag method to key in strings to code and markup. > - the <bc:*> tag is replaced with the generated php > in the target-file-buffer > - regex goes to next occuring tag and repeats the above > - EOF => resulting file is written Let's test the speed of a system like that within make... if it's nasty we can run a precaching step that builds a list of files that need to be processed. best, _alex |