class.rFastTemplate.php CVS Log
Working file: class.rFastTemplate.php
head: 1.26
branch:
locks: strict
access list:
symbolic names:
start: 1.1.1.1
rlenter: 1.1.1
keyword substitution: kv
total revisions: 27; selected revisions: 27
description:
----------------------------
revision 1.26
date: 2002/10/01 20:47:48; author: roland; state: Exp; lines: +3 -3
Added /s qualify to PCRE regexps. This makes multiline comments
following the {BEGIN,END}_DYNAMIC_TEMPLATE work as intended.
----------------------------
revision 1.25
date: 2002/09/24 21:54:42; author: roland; state: Exp; lines: +16 -1
Added $t->append($x) function to be equivalent to
$t->assign($t->getkey($key).$x). Actually its better than that since
it takes the same arguments as assign/setkey, i.e., it can process an
array argument.
----------------------------
revision 1.24
date: 2002/09/23 16:52:01; author: roland; state: Exp; lines: +19 -5
Modified load() to not throw an error if the template file is empty.
The previous work around was to create a template with at least one
byte.
----------------------------
revision 1.23
date: 2002/02/15 20:51:21; author: roland; state: Exp; lines: +24 -5
quiet() was ignoring argument.
Added missing_dir_okay() which allows you to include directories in
the template path array which do not exist. The default is 'false'.
Think about organizing a web site into sections which correspond to
directories. The template tree includes a generic menu plus specific
menus for each section. The specific menus are arranged in a
directory tree parallel to the main web site. If there is no specific
menu, the generic one is used. Previously, you had to create the
directory tree even if you had no templates to go in there.
----------------------------
revision 1.22
date: 2001/10/18 21:36:53; author: roland; state: Exp; lines: +15 -4
Added quiet() to allow you to pass through template variables
unchanged without generating an error. I.e., normally, if something
like {FOO} appears in the text, it is either removed with no_strict()
or you get a warning message with strict(). This does neither, i.e.,
no warning and no removal.
----------------------------
revision 1.21
date: 2001/10/18 15:25:16; author: roland; state: Exp; lines: +81 -25
Added clear_dynamic(). Changed clear() to behave like FastTemplate
version. A few more cleanups to be quiet with E_ALL.
----------------------------
revision 1.20
date: 2001/10/11 20:17:16; author: roland; state: Exp; lines: +76 -64
Clean up under error_reporting(E_ALL).
----------------------------
revision 1.19
date: 2001/10/03 21:24:01; author: roland; state: Exp; lines: +9 -6
Fixed $t->parse(MAIN,array('table','main')) bug to be compatible with
FastTemplate. This will change the behavior for people who were using
the array() form, but I can't imagine how it worked satisfactorily
before.
----------------------------
revision 1.18
date: 2001/09/29 02:12:45; author: roland; state: Exp; lines: +114 -95
Added define_raw() for shoving text directly into a template
----------------------------
revision 1.17
date: 2001/08/08 01:50:35; author: roland; state: Exp; lines: +5 -8
Fixed problem with clearing template results.
Fixed typo in fetch that prevented default from working.
----------------------------
revision 1.16
date: 2001/07/25 18:31:14; author: roland; state: Exp; lines: +3 -3
clear() and parse_internal_1() both referenced an array element
[results] which should have been [result]. The meant neither were
correctly clearing the element.
----------------------------
revision 1.15
date: 2001/07/25 18:06:06; author: roland; state: Exp; lines: +9 -5
Added "if($debug)" to all $this->logwrite(...) calls.
----------------------------
revision 1.14
date: 2001/06/28 01:42:54; author: roland; state: Exp; lines: +2 -2
Typo/thinko due to failed testing!
----------------------------
revision 1.13
date: 2001/06/28 00:56:05; author: roland; state: Exp; lines: +14 -8
Allow '.' as a valid character in a template name.
Allow class.FastTemplate.php3 compatible use of define_dynamic.
----------------------------
revision 1.12
date: 2001/06/27 16:51:04; author: roland; state: Exp; lines: +23 -31
Fixed handling of no_strict() which was broken after then last set of changes.
----------------------------
revision 1.11
date: 2001/06/18 20:59:13; author: roland; state: Exp; lines: +78 -35
o Added several logwrite sections to help track differences with
class.FastTemplate.php3.
o Added class.FastTemplate.php3 compatible define_dynamic() to allow
dynamic templates to be declared.
o Added second optional argument to define() to allow dynamic
templates to be defined by file rather than parent. If you have
lots of nested templates, this might be easier.
o Added support for smarter autoloading so a declared dynamic template
will try to declared location first. If there is no declared
location, it will load all templates trying to find a match.
----------------------------
revision 1.10
date: 2001/06/18 19:08:48; author: roland; state: Exp; lines: +49 -38
Fixed problem with double append in [result] element.
----------------------------
revision 1.9
date: 2001/06/18 16:46:49; author: roland; state: Exp; lines: +9 -5
Fixed incorrect test for trailing whitespace after END block.
----------------------------
revision 1.8
date: 2001/06/18 03:51:21; author: roland; state: Exp; lines: +67 -57
o Fixed problem with templates being parsed multiple times.
o Fixed problem with extra append of template contents if the first
call to parse() is in append mode instead of overwrite mode.
----------------------------
revision 1.7
date: 2001/06/15 19:17:19; author: roland; state: Exp; lines: +79 -65
o Skipping whitespace could back up over a linefeed inappropriately.
o If a dynamic template began at the start of a "part" it would be
duplicated in the output.
----------------------------
revision 1.6
date: 2001/06/14 17:52:23; author: roland; state: Exp; lines: +2 -2
Fixed typo/thinko in unsetkey; isempty -> empty.
----------------------------
revision 1.5
date: 2001/06/14 02:56:51; author: roland; state: Exp; lines: +204 -74
o Merged Alister Bulman's changes.
o Fixed problem with trailing comments in BEGIN/END blocks.
o Discard space on BEGIN/END lines if those lines contain ONLY
whitespace.
----------------------------
revision 1.4
date: 2001/06/12 19:04:20; author: roland; state: Exp; lines: +18 -21
Additional copyright cleanup.
----------------------------
revision 1.3
date: 2001/06/12 03:43:17; author: roland; state: Exp; lines: +52 -17
Updated copyright notice, minor comment changes.
----------------------------
revision 1.2
date: 2001/06/07 15:28:46; author: roland; state: Exp; lines: +222 -222
Whitespace cleanup
----------------------------
revision 1.1
date: 2001/06/07 15:10:58; author: roland; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2001/06/07 15:10:58; author: roland; state: Exp; lines: +0 -0
class.FastTemplate replacement
=============================================================================