All patches below are unified or context diffs and can be applied with the GNU patch utility. This patch fixes the HTML parser to not restart from the beginning but continue at the current position. It already works quite well but sometimes it hides usefull error information for template problems due to errors in ZPT itself. You might want to apply this patch, if you are willing to fix ZPT yourself in the case that error information is hidden by a secondary problem in ZPT itself. 5.3 ZPT - delay cooking Before a ZPT can be used, it must be cooked.
Cooking essentially means parsing the template and transforming it into an internal object.
This may become a problem, as cooking may take a long time. For example, if you have a folder with lots of ZPT's and the folder get displays in the left frame of the ZMI for the first time, then all contained ZPT's are loaded. It can take minutes before the tree display is finally build. The following patch delays cooking until the ZPT is actually used for something. This speeds up initial operations considerably.