For those of you who have been interested in the evolution of the Cached Dynamic Modules, here's the
3rd Incarnation. This article is written on the assumption that you are partly familiar with the
Cached Dynamic Modules script. These first few pages go over the additions, and updates to the
original code; then dives right into the
(pretty)
source code.
The code should look familiar because a lot of the code used in this version has been used verbatim
to the way
set it forth in his article,
Another Look At "Building
Your Website With Cached Dynamic Modules". Thanks are due to both
and
for
their initial work on the project.
Debugging of the parser is now available. Nearly all variables are printed
in the parse_it() function as they are set. A common output would read:
$str_func on line 234 = handle_xxx
Almost all of the information printed while in debugging mode gives the line
at which it was generated to help you find it in the code. However useful
this may be, it is strongly advised that you don't use this on public portion
of the website. Exposing all of the variable names to prying eyes could prove
a disaster to your site security.
In version, no checking
was done to ensure that the module file to be included existed. Checking was
added, and if the file does not exist, the current information is returned with
the following error message added to the line above the custom code:
<!-- xxx cannot be processed - # -->
xxx is replaced with the name of the custom tag, and # is replaced
with the line number which it was returned.