wasteland

2009-06-17 : Ems!

I’m dusting the ol’ site off today and cleaning up the CSS a bit seemed like as good a place to start as any. With the help of this blog post http://is.gd/14VgS I have changed all the font sizing and most of the margins to use ems instead of pixels. Yay typography!

2004-11-28 : DTemplate 1.2

DTemplate 1.2 is now available for download.

This release has a fair number of changes to usage, but really only one to functionality. I discovered a limitation of the dynamic processing in the previous versions which prevented using nested blocks in a certain way. You couldn't have a nested block that prints in some iterations of an outer block and not in others. You could code around this, but it required a lot of work on the calling script. Avoiding this extra programming was the entire point of nested blocks in the first place.

The other change to take note of is that there is no longer a parse function. The function responsible for doing what parse did before is called process. I did leave in an alias to process called parse, but calls to parse should really be changed because a function that actually parses things will probably make its way into the program later (no, the parse function didn't really do any parsing before, not even in FastTemplate).

Basically, if you are switching to this version from a previous release you should definitely read the documentation before replacing your current working version.

Oh and the overall list of changes is at the end of the documentation.

2004-01-21 : DTemplate 1.1.3

DTemplate 1.1.3 is now available for download.

There are no new features or functionality changes. This is just a very small update to fix one sort of nasty bug that I ran across recently that would cause a memory error in PHP. Sometimes this would prevent any output from reaching the browser. So everyone should upgrade to this version, especially if you are using dynamic blocks.

Changes:
! fixed a bug that caused a memory error in PHP when using a non-defined dynamic block tag

2003-11-03 : Dead sites everywhere...

I'm making this update so that desolatewaste.com doesn't fall into the category of sites in this article http://www.cnn.com/2003/TECH/internet/11/03/deadwood.online.ap/index.html.

Ha, and you thought this site was dead. Fools! :P

2002-12-2 : DTemplate 1.1.2

DTemplate 1.1.2 is now available for download.

Changes:
= when using 1.1.1 with error_reporting(E_NOTICE) several problems would occur
! fixed code that would cause a notice about an undefined index when using dynamic blocks
! fixed examples' code that would cause notices about undefined constants
! changed example code in the documentation that would cause notices if used as actual code
= code cleanup in examples
= fixed spelling errors in documentation
! corrected parse documentation in the dynamic template section

2002-11-27 : DTemplate 1.1.1

DTemplate 1.1.1 is now available for download.

Changes:
! fixed clear_dynamic, it will now remove the dynamic block completely
= syntax changes for PEAR coding standards
= general code cleanup
+ added copyright information to output
+ added dynamic block delimiter format variables

2002-10-18 : DTemplate 1.1

DTemplate 1.1 is now available in the downloads section. Anyone who is/has used DTemplate before should read the documentation, as there have been some changes to a few functions.

Most importantly, this version brings a significant speed increase when using dynamic blocks.

Changes:
! changed the function define to define_templates. define is an internal function in PHP.
! parse_dynamic is now an internal function and should not be called from scripts using DTemplate, use parse instead.
! parse no longer requires an output handle. most of the time the output is only going to one place. And in the case of dynamic blocks can only go to one place.
! when using an output handle with parse, it is now the second argument.
! when defining dynamic blocks, if the block is inside another block, it should reference the parent block in the second argument instead of the template.
+ dramatic speed increases when dealing with dynamic blocks over version 1.0.1.

2002-10-14 : New site design

"Um, this magnificent feast represents the last of the petty cash."

Not really much to be said here. I was tired of the old site design.

 

2002-02-19 : DTemplate 1.0.1 and the future

I've updated the Downloads section with a new version of DTemplate. This version fixes a bug with the fetch function.

If you've looked at the comparison to FastTemplate 1.1.0 you'll notice that in NESTED DYNAMIC BLOCKS DTemplate and FT get closer in performance as you increase the number of times you parse the template. I haven't tested it, but I don't think it takes a rocket scientist to figure out that at some point DT will be slower than FT1.1.0 when using nested blocks.

Well, rest assured, if you are using nested dynamic blocks (and haven't gotten around this problem by using a separate template file for the nested block), I've thought of a way to fix this so it will be much faster, I just haven't had time to implement it yet.

Future plans also include adding XML support so we won't have to use HTML comments for dynamic blocks. Won't <DT:Dyn>{dynamic}</DT:Dyn> (or something like that) be so much nicer? ; )

2001-11-30 : DTemplate 1.0

DTemplate 1.0 is here! DTemplate is a template engine based on FastTemplate 1.1.0. It's faster than FastTemplate and (IMO) a little easier to use.

A bunch more information on it is available in the projects section and the files are of course in the download section.

Enjoy