Dwoo Downloads

2008-10-24 - Version : 1.0.0


Version : 1.0.0beta, released on 2008-09-08

License : GNU Lesser General Public License

Changelog

!Important note: Dwoo.php should not be included directly anymore, please read the UPGRADE_NOTES file for more infos on the matter, if you don't your Dwoo install will most likely break after the update anyway
! BC Break: {include} and {extends} now support the include path properly, which means that if you include "foo/bar.html" from _any_ template and you have an include path set on your template object, it will look in all those
paths for foo/bar.html. If you use relative paths, for example if you include "../foo/bar.html" AND have an include path set, you will now have a problem, because you can't mix both approaches, otherwise you should be fine, so to fix this you should convert your relative includes/extends
+ Adapters: Added the Agavi interface for Dwoo (see /Dwoo/Adapters/Agavi/README)
+ API: Added Dwoo_Compilation_Exception methods getCompiler() and getTemplate() so you can catch the exception and use those to build a nicer error view with all the details you want
+ Plugins: Added a mode parameter to {strip} to allow stripping of javascript code blocks that use "// comments", because without this special mode the comments result in syntax errors
* The Compiler now ensures that a template starting with <?xml will not conflict with php using the short_open_tag = On setting
* Complex arrays keys can be read using {$var["Long|Key*With.some)Crap"]}, however since it is really bad practice I won't spend time fixing edge cases, which are $ and '/" characters inside the string. Those will break it and that's it.. if you really care feel free to send a patch
* Dwoo->get() is now stricter as to what it accepts as a "template", only Dwoo_ITemplate objects or valid filenames are accepted
* Foreach and other similar plugins that support "else" now only count() their input before processing when an else block follows
* Various optimizations
* Fixed compiler bug that created a parse error when you had comments in an extended template
* Fixed extends bug when extending files in other directories using relative paths
* Fixed parsing bug with "|modifier:param|modifier2} with:colon after it"
* Bug fixed with smarty functions called with no parameters (in compat mode)
* Fixed Dwoo::isArray() check, objects implementing ArrayAccess are now valid (thanks to Daniel Cousineau for the patch)
* Fixed compiler warning when doing {func()->method()} or {func()->property}
* Fixed compiled/cached files being written in the wrong place when the path to the template contains "../"s
* Fixed {if} failing with conditions using upper case operators (i.e. AND)

Files :

Downloaddwoo-1.0.0beta.tar.gz Dwoo Library

Downloaddwoo-1.0.0beta-docs.tar.gz API Docs


2008-08-03 - Version : 0.9.3

2008-06-28 - Version : 0.9.2

2008-05-30 - Version : 0.9.1

2008-05-10 - Version : 0.9.0

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