x64Template -> The new template engine
Thursday, 2. March 2006, 02:06:23
This is the current change log:
- Changed the documentation to phpDoc format
- Added plugins support
- Changed some variable and function names by prepending a '_' so it is easier to identify private functions/variables from global ones.
- Added the x64Template::append() function so an already set value/array can be changed by appending content, and if it is an array, merging it.
- Added more information for some functions so a developer could easily find out that some of the current class functions can be used for retrieving data from the template
... the most important features are going to be these:
- Add support for ifs in arrays
- Add a template syntax checker, which will be helpful for developers to find out mistakes in their templates
- Improve the if tags, allowing the template to use tags like
{if:{tag:user_name}={tag:administrator_name}} Welcome {tag:administrator_name}, how many people you want to kick today? :) {else:{tag:user_name}={tag:administrator_name}}{/if:{tag:user_name}={tag:administrator_name}} Welcome {tag:user_name} {/if:{tag:user_name}={tag:administrator_name}}
This new template will be used instead of bTemplate in all my projects where I need a template engine, providing a lot of new features to all my current projects and preventing me from writing more code to do some stuff that bTemplate can't do.








Anonymous # 21. November 2007, 16:31
honestly, this template style sucks :/ all templates based on {} tags make me feel sick :/