[Phplib-users] template.inc patch (IF/ELSE/ENDIF)
Brought to you by:
nhruby,
richardarcher
From: J C L. <cl...@ka...> - 2001-12-30 10:43:23
|
Please find attached a patch for template.inc which adds the following: 1) The backslashes patch #480713 already on SourceForge. 2) IF/ELSE/ENDIF support for template sub-blocks as based on Zakaria's patch: http://www.phpbuilder.com/mail/phplib-dev-list/2000062/0008.php 3) You can now pass in an array of directories to search for template files. Yeah, I know that conditionals in templates violates the strict abstraction of logic and content, but there are more than enough cases where its damned useful to justify it. Moderation in all things, including moderation. -- J C Lawrence ---------(*) Satan, oscillate my metallic sonatas. cl...@ka... He lived as a devil, eh? http://www.kanga.nu/~claw/ Evil is a name of a foeman, as I live. #text/plain [tempalte.inc.patch] /home/claw/tmp/template.inc.patch |