Greytower Technologies

If the navigation is not visible, this link will take you to it.

 

Development history for PetiteCGI::Template

Last update Friday, 17th of November, 2006, 20:04 (CET)

24th of August, 2003

2.0b10
Correced yet another bug in how arguments where read.

21st of August, 2003

2.0b9
Fixed a bug in template_callback() introduced in 2.0b8 which prevented the correct parsing of hashes.

20th of August, 2003

2.0b8
Rewrote template_callback() to better handle combinations of default values, as well as improve parsing of callback data.
2.0b7
Updated Template::template_callback() again. The default value can now be a code, a scalar, an array or a hash exactly like the regular callback values. Some cleanup was included.
2.0b6
Updated Template::template_callback() so that arguments to callbacks are now used.

3rd of June, 2003

2.0b5
Added the option matchDefaultSubstring. The option defaults to "no", and ensures that a default value matches exactly with the real values. If set to "yes" it will match substrings.

12th of May, 2003

2.0b4
Bugfix. Start- and endtag constructs where ONLY parsed if they were written explicitly as starttag and endtag.
2.0b3
Added the option expandEmptyItems so that the user can control whether or not a callback that produce an empty item list should result in the start- and end-tags being included anyway.
2.0b2
Changed the behaviour template_callback(). Previously the start and end tags would be included even if the generated item list was empty. This has now been changed.
2.0b1
The parser for stand-alone variables had a minor, luckily non-harmful, bug in the expanding regexp.

22nd of April, 2003

2.0b0
Release. Upgraded PetiteCGI::Template to version 2.0b0.
2.0a71
Bugfix. If a plain variable contained a Perl regexp meta-character, it was not properly expanded.
2.0a70
Bugfix. When parsing template callbacks, the regular expression used for 'Item' mixed it up with 'selectedItem', which made defaults the norm ...

21st of April, 2003

2.0a69
Added support for lists (which may be only 1 in length) of default values.
2.0a68
Added import of defaultKey by way of register()
2.0a67
Bugfix. The parser for selected items were not case insensitive.

20th of April, 2003

2.0a66
Bugfix. template_callback() did not properly expand any template code containing meta-characters.
2.0a65
Spring-cleaned template_callback().

16th of April, 2003

2.0a64
Changed register() so that it now also stores information on the default values. It has also been cleaned up abit, and four temporary variables removed.
2.0a63
Rewrote template_callback() to use a more structured method of detecting the various types of data. Only stubs so far. (15-04-2003)

2nd of April, 2003

2.0a62
Added handling of template structures default and defaultArguments.

20th of March, 2003

2.0a61
Bugfix. Neither startTag, endTag, item nor selectedItem were properly parsed after changes in 2.0a55.
2.0a60
Bugfix. template_callback() resolved code references, but failed to use the resolved data to handle return values.
2.0a59
Bugfix. The template_callback() method only replaced data if the callback was NOT defined ...
2.0a58
Bugfix. getValue() did not return the proper data if the registry held a normal de-reffed scalar.
2.0a57
Bugfix. The code expanding normal variables expanded only the FIRST it found.
2.0a56
Changed several string comparisons from "" to defined.
2.0a55
Rewrote template_callback() to avoid errors creeping in when one or more optional constructs OR their quotes were missing.
2.0a54
Added yet more defaulting and massage to keep the compiler SHUT UP.
2.0a53
Improved the error message given during a file open, so that the user now can see WHICH file failed.
2.0a52
Removed yet another call to _changeStatus() in setAttribute(), all to make the compiler play nice.
2.0a51
Added redundant my() to several variables to shut up the compiler in strict mode.
2.0a50
Removed the call to _changeStatus() that occurred before the debug variable was initialised. Death to -w and use strict.

18th of March, 2003

2.0a49
Completed first version of template_callback()
2.0a48
Added template_callback()
2.0a47
Added plain variable expansion to boilTemplate().
2.0a46
Completed getValue()
2.0a45
Completed template_set().
2.0a44
Bugfix. boilTemplate() was trying to parse an old copy of the template code, which didn't work very well if that had been changed by template_include().
2.0a43
Rewrote register() to take a reference to an anonymous hash as its only argument.

18th of March, 2003

2.0a42
Added template_set().
2.0a41
Updated _boilTemplate() to handle template variable definitions.
2.0a40
Finalised template_include() so that it is now operational with basic, limited, functionality.
2.0a39
Remembered to store a copy of the raw data as a working copy.
2.0a38
Added template_include().
2.0a37
Changed _boilTemplate() so that it now parses includes first.

15th of March, 2003

2.0a36
Changed register() to retrieve data from the public structure.
2.0a35
Changed _boilTemplate() to retrieve data from the private structure.
2.0a34
Moved the _registry structure into the public section under the name registry.
2.0a33
Rebuilt _readSource()
2.0a32
Changed a misspelled variable name in getAttribute()
2.0a31
Added the public attribute "debug", and changed _changeStatus to take advantage of it.
2.0a30
Moved all operations on the source file out of the constructor and into the _readSource() method.
2.0a29
Changed getMessage() to accommodate the new separation of private and public structures.
2.0a28
Changed getStatus() to accommodate the new separation of private and public structures.
2.0a27
Changed _setStatus() to accommodate the new separation of private and public structures.
2.0a26
Rewrote the constructor so that private and public attributes have been separated.
2.0a25
Changed getTemplate() to work with the new structures.
2.0a24
Rewrote getAttribute() to work with the new private/public constructs.
2.0a23
Rewrote setAttribute() to work with the new private/public constructs.
2.0a22
Added the private and public constructs to the class structure.
2.0a21
Added setAttribute() and reassigned setValue().
2.0a20
Added the getAttribute() function, and reassigned that to the task formerly held by getValue()

9th of March, 2003

2.0a19
Added the _registry structure to the object.
2.0a18
Added public method register().
2.0a17
Bugfix. getValue() didn't DO anything, which made it difficult to retrieve, for instance, the template code ...
2.0a16
Bugfix. getTemplate() referred to boilTemplate() which doesn't exist. Reference change to _boilTemplate()
2.0a15
Removed addItem()
2.0a14
Rewrote setValue()
2.0a13
Rewrote getValue()
2.0a12
Rewrote printTemplate()
2.0a11
Added getTemplate().
2.0a10
Remove parboiling from the constructor - it really isn't needed there ...
2.0a9
Rewrote new() to use a more linar method of testing for error conditions.
2.0a8
Rewrote _readSource() so that it doesn't actually parse the data. That'll be left to another method.
2.0a7
Changed all calls to _debug() to _changeStatus()
2.0a6
Removed _debug() in favour of _changeStatus()
2.0a5
Added the public method getMessage() which retrieves the current diagnostics message.
2.0a4
Added the public method getStatus() which retrieves the current status message.
2.0a3
Added the internal function _changeStatus() which is used to track debugging and other diagnostics.

8th of March, 2003

2.0a2
Added the internal variable _status to track what happens with the program.
2.0a1
Changed occurrences of varList to argList.
2.0a0
Started a separate history file for the Template module.

Return to the top of the document