Dwoo Downloads

2008-10-24 - Version : 1.0.0

2008-09-08 - Version : 1.0.0beta

2008-08-03 - Version : 0.9.3

2008-06-28 - Version : 0.9.2

2008-05-30 - Version : 0.9.1


Version : 0.9.0, released on 2008-05-10

License : GNU Lesser General Public License

Changelog

! BC Break: changed all class names to be PEAR compliant (aka use underscores to separate words/paths), sorry about that but I better do it now than in six months
! BC Break: $dwoo->output() and get() have been swapped internally, but it doesn't change anything for you unless you called output(*, *, *, true) directly to emulate get().
! BC Break: $dwoo->getTemplate() changed to $dwoo->templateFactory() and $dwoo->getCurrentTemplate() changed to $dwoo->getTemplate() for consistency among all classes and factory functions
+ Added a compiled version of Dwoo that loads faster (especially with opcode caches such as APC), include Dwoo.compiled.php instead of Dwoo.php on production but if you want to file a bug use Dwoo.php please as it allows you to get the proper file/line number where an error occurs. Do not remove all other files however since they are not all included in the compiled package
+ Plugins: Added {extends} and {block} to handle template inheritance, read more about it in the wiki
+ Plugins: Added {loop} that combines {foreach} and {with}, see the wiki for details
+ Plugins: Added {do} that executes whatever you feed it whitout echoing the result, used internally for extends but you can use it if required
+ Plugins: Added {eol} that prints an end of line character (OS-specific)
+ Syntax: Added shortcut for {$dwoo.const.*} using '%', for example you can use {%FOO} instead of {$dwoo.const.FOO}
+ Syntax: When using named parameters, typing a parameter name without any value is the same as typing param=true, for example {foo name="test" bar} and {foo name="test" bar=true} are equals, can be useful for very complex plugins with huge amounts of parameters.
+ Syntax: Added support for {$foo+=5}, {$foo="a"}, {$foo++} and {$foo--}
+ Syntax: Added shortcut for $dwoo.*, you can now use {$.foreach.foo} instead of {$dwoo.foreach.foo} for example, applies to all $dwoo.* vars
+ Syntax: Added $ as a shortcut for current scope, $_ for $_parent and $__ for $_root
+ API: Added getSource(), getUid() and getResourceIdentifier() to Dwoo_ITemplate
+ API: Added setSecurityPolicy() too Dwoo_ICompiler and modified the arguments of its compile() method
+ API: Added a bunch of utility functions to Dwoo_Compiler, allowing compiled plugins to access more of the compiler internals
+ Both cache and compile IDs can now have slashes in them to create subfolders in the cache/compile dirs
+ Added a DWOO_CHMOD constant that, if set before you include Dwoo, allows you to define the file mode of all the file/directories Dwoo will write, defaults to 0777
+ Added a 'data' argument to {include} to be able to feed data directly into it
* The compiler now throws Dwoo_Compilation_Exception exceptions upon failure and security problems lead to a Dwoo_Security_Exception being thrown. Runtime plugin errors and such trigger simple php errors to allow the template execution to complete. You can use Dwoo_Exception to catch all Dwoo exceptions
* Fixed a potential concurrency issue (thanks to Rasmus Schultz for the patch)
* Moved all files to Dwoo/Class.php excepted for the core Dwoo.php file
* Various performance improvements, including the removal of a lot of isset() calls. Doing {$foo} if foo is undefined will now display a PHP warning, but doing {foreach $foo}..{/foreach} will not however, that way you don't have to do {if isset($foo)} before the foreach, but automated isset() calls don't impact performance as much as they did before.
* API: Dwoo_ITemplate->clearCache now requires a Dwoo instance as its first arg, should not affect you unless you built a custom template class from scratch
* Reworked Dwoo template rendering to avoid variables conflicts with plugins
* {include} now uses the current resource if none is provided instead of using file as it did before
* Dwoo uses include path instead of absolute includes
* Changed all line endings to Unix (line feed only) and all spaces left have been converted to tabs (tabspace 4)
* TestFest happened early for Dwoo, lots of new tests and more code covered
* Fixed a regression in the handling of custom class plugins
* Fixed various bugs in the Adapter class and related smarty compatibility features
* Fixed a classpath rebuilding bug that occured on some UNIX platforms due to glob() returning false sometimes for empty folders
* Fixed a bug in Dwoo_Security_Policy->getAllowedDirectories(), no security issue though
* Fixed a bug in Dwoo::setScope affecting {loop} and {with}
* Fixed a parsing bug when doing {"string"|modifier:$var}

Files :

Downloaddwoo-0.9.0.tar.gz Dwoo Library

Downloaddwoo-0.9.0-docs.tar.gz API Docs


2008-04-09 - Version : 0.3.4

2008-03-19 - Version : 0.3.3

2008-03-09 - Version : 0.3.2

2008-03-05 - Version : 0.3.1

2008-03-02 - Version : 0.3.0

2008-02-19 - Version : 0.2.1

2008-02-14 - Version : 0.2.0

2008-02-08 - Version : 0.1.0