History
Version 8fb69e869885eceb179e8481819867ce99e43984
at Sunday 18 April 2010 12:55:32 UTC Adapters: Agavi: Added support for multiple plugin directories in the config, thanks to Mike Seth for the patchVersion b8ab7d48b9170b14301e0f0ce0269ff544459132
at Tuesday 9 March 2010 09:22:41 UTC Forgotten test resource git-svn-id: http://svn.dwoo.org/trunk@347 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cb80c435bb20fa06b4fa3a18bae45a04f990eca9
at Sunday 7 March 2010 20:58:29 UTC Added {return} plugin that allows any included template to return variables into the one that included it, or to the main controller code via $dwoo->getReturnValues() Fixes #59 git-svn-id: http://svn.dwoo.org/trunk@346 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion ad60ed1a268d5880988f8d6642d727ee464b42f3
at Tuesday 2 March 2010 22:08:10 UTC Fixing default compile/cache dirs, fixes #58 git-svn-id: http://svn.dwoo.org/trunk@344 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9315dcc815b5063f6212c06dd2c20b8b75004434
at Sunday 28 February 2010 21:26:49 UTC + Moved Dwoo code to Dwoo_Core that is extended by Dwoo, so you can use the Dwoo directory as an svn:externals without problems now and just use Dwoo_Core in place of Dwoo in your code git-svn-id: http://svn.dwoo.org/trunk@343 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 69f61f8337c91c2619d12461c9808327117da8c1
at Sunday 28 February 2010 19:20:25 UTC * Added $this->viewParam support to ZendFramework adapter through a Dwoo_Adapters_ZendFramework_Dwoo class that extends Dwoo, you should use this if you called setEngine() on the ZF view * Fixed some whitespace issues git-svn-id: http://svn.dwoo.org/trunk@341 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion aa5c9622a98d81d48da3897782bbacf375aa7d9c
at Sunday 28 February 2010 18:44:24 UTC + Improved parsing of array() to support real php array syntax as well as variables as array keys, thanks to acecream for the help + Improved parsing of named parameters that can now be quoted git-svn-id: http://svn.dwoo.org/trunk@340 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8eb1d24094c0e354ca5a29e07c522728dc25adc7
at Friday 19 February 2010 09:11:20 UTC Fixed a parsing bug with method calls used as arguments with a comma following. git-svn-id: http://svn.dwoo.org/trunk@339 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a91a53f96577711dca854cb585d41dfdb45ac344
at Sunday 14 February 2010 14:17:14 UTC adding a test to check for disallowed php functions git-svn-id: http://svn.dwoo.org/trunk@338 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9dbd272cda5bcb6571e13660ccb26ab356727c17
at Sunday 7 February 2010 18:17:59 UTC update changelog dates git-svn-id: http://svn.dwoo.org/trunk@337 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e3129dcf28fdc8b93a0f7a67c68ff2269562c360
at Sunday 7 February 2010 17:14:07 UTC Docs 1.1.1 git-svn-id: http://svn.dwoo.org/trunk@334 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e34cfa7548ac1ff50474a688933f2a71f1b14d73
at Sunday 7 February 2010 16:43:23 UTC Prep release 1.1.1 git-svn-id: http://svn.dwoo.org/trunk@333 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b52f902275642d1c571c62cf5b7aee3317c0ad4b
at Sunday 24 January 2010 02:58:40 UTC Fixed a compilation bug when using a PluginProxy with highly nested calls git-svn-id: http://svn.dwoo.org/trunk@330 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b159408a4df46cf8bd87394fd57eca5cc37168af
at Thursday 21 January 2010 00:27:38 UTC Fixed parsing of quoted keywords in if statements, like 'not' was parsed as ! because using {if not $foo} is valid, but it was impossible to use them even as string. Fixes #46. git-svn-id: http://svn.dwoo.org/trunk@329 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9364271ec6f0ec3a36aef3a821b1327d45ace23b
at Tuesday 19 January 2010 20:46:55 UTC Fixes parsing of multi-line if (and other) statements git-svn-id: http://svn.dwoo.org/trunk@327 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9eb8c960ab353e6540840cde867ef12e5cd07d20
at Tuesday 19 January 2010 01:08:49 UTC update Dwoo.compiled git-svn-id: http://svn.dwoo.org/trunk@325 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cb3c2b55a8ec9c64a997962d2696d198b2f23a2e
at Tuesday 19 January 2010 00:26:05 UTC Allow custom plugins to be called from within sub-templates, fixes #51 git-svn-id: http://svn.dwoo.org/trunk@323 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion c417fe27ea22dd1ab1f2a8065d5e1f424c198071
at Monday 18 January 2010 23:40:23 UTC unify line endings to LF and set svn:eol-style to native on all files git-svn-id: http://svn.dwoo.org/trunk@322 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cf4be68ff0760ee3c329fd295a625be1925dacef
at Monday 23 November 2009 15:45:26 UTC fixes loading of plugins within dynamic blocks git-svn-id: http://svn.dwoo.org/trunk@313 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d3270dde07b435b6b70091607a62ca4343fa1070
at Wednesday 4 November 2009 15:49:10 UTC removing executable flag from non-executable files git-svn-id: svn://dwoo.org/dwoo/trunk@307 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 982932229cbd06a724464ea9ad4fb7acc5653825
at Sunday 18 October 2009 17:52:23 UTC Removed a couple of @-operator calls to file_get_contents git-svn-id: svn://dwoo.org/dwoo/trunk@303 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cf39726d1f4bb2ee9ec5c56646e95bdf508aaaf8
at Sunday 18 October 2009 12:04:48 UTC Fixed an {extends} parsing bug that prevented the use of single-quotes around the parent template's filename fixes #39 git-svn-id: svn://dwoo.org/dwoo/trunk@301 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 79a654f2dd122879eec58d22ed9b03f772dd32ac
at Sunday 18 October 2009 10:46:37 UTC Added {optional} plugin that just prints an optional var without any notice if it doesn't exist git-svn-id: svn://dwoo.org/dwoo/trunk@297 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 66ddc960826f6111e2b967e6ddb9e9adcfc85953
at Saturday 17 October 2009 22:56:24 UTC updating compiled version git-svn-id: svn://dwoo.org/dwoo/trunk@294 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion c9eda80d191152594c2fc181880c1f062da3b690
at Monday 12 October 2009 21:18:54 UTC Fixed a bug when accessing global vars from a sub-template fixes #42 git-svn-id: svn://dwoo.org/dwoo/trunk@292 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a1d321a84b993e87cfbdbdca4eb7dddeae823da1
at Monday 12 October 2009 19:45:20 UTC Fixed a bug when accessing array indices that contain a minus sign, it is now possible to access those using {$var[index-foo]}, {$var['index-foo']} or {$index="index-foo"} {$var[$index]} fixes #44 git-svn-id: svn://dwoo.org/dwoo/trunk@286 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a00e95bf1820cc40cf8813b7e961630e97f2cf04
at Monday 12 October 2009 19:40:23 UTC whitespace fix git-svn-id: svn://dwoo.org/dwoo/trunk@285 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7c2e53a743a899359d3abea061fdf909855fafe3
at Monday 12 October 2009 18:19:17 UTC BC Break: Dwoo::isArray had to be fixed and it has been split up in 3 methods, isArray (for array access), isTraversable (for foreach) and count (just a helper that counts anything). It won't affect you unless you built some plugin depending on isArray, in which case you should check all works fine still fixes #37 git-svn-id: svn://dwoo.org/dwoo/trunk@284 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9b4b83649bc0ac5ffe6fbae4d2b8bcd25e201ffb
at Wednesday 7 October 2009 07:57:36 UTC Fixed a security issue, if you didn't use a custom compiler factory but passed the compiler directly to the get method with autoEscape enabled, the autoEscape was disabled in included templates - Thanks to Fabien Potencier for notifying me. refs #31 git-svn-id: svn://dwoo.org/dwoo/trunk@282 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion c137b21c44c89ed39ea18d4fe38e517b15b0392b
at Wednesday 19 August 2009 03:51:08 UTC Added handling of a special case when callback is array(object, string) in case of an error of an undefined or non-optional parameter git-svn-id: svn://dwoo.org/dwoo/trunk@280 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion bd9d98a2da31aa33ed483ce6a263641430694680
at Wednesday 29 July 2009 19:44:45 UTC merging changes from 1.1 git-svn-id: svn://dwoo.org/dwoo/trunk@279 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d9572ef45a54a5adf5d88798813543e2e0a88333
at Saturday 18 July 2009 18:59:26 UTC Prep release 1.1.0 git-svn-id: svn://dwoo.org/dwoo/trunk@272 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a7470bb14371891590138b96ae021286907f8b38
at Saturday 18 July 2009 18:21:53 UTC * Fixed an optimization causing foreach/for/loop variables not being accessible when the foreach/.. name was set dynamically git-svn-id: svn://dwoo.org/dwoo/trunk@271 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion ce2fb905779a1b18830802cfdf759cf295dcaa4f
at Wednesday 8 July 2009 22:57:01 UTC No more double-slashes in template paths since this seemed to cause slight performance issues git-svn-id: svn://dwoo.org/dwoo/trunk@268 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion dd288f0c2305785a5ffd92d0ff02e394b35a5222
at Wednesday 8 July 2009 21:42:52 UTC The include_path isn't altered anymore, hopefully saving some stat calls git-svn-id: svn://dwoo.org/dwoo/trunk@267 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7212c79d804a8f682e83659da957b18af038fdcf
at Tuesday 30 June 2009 20:42:02 UTC Fixed view cloning issue - when adapter was cloned, both objects were pointing to the same data provider -- and both were deleted when clearVars() was called git-svn-id: svn://dwoo.org/dwoo/trunk@266 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e0b9baf8732bb37b50571adc7a9384a9126670f5
at Monday 29 June 2009 23:51:21 UTC updating dwoo compiled git-svn-id: svn://dwoo.org/dwoo/trunk@265 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8da0ae466093ebd207109d1a552472cdda03de2e
at Monday 29 June 2009 23:50:36 UTC fixes #1 Adapters: CakePHP: this adapter is now added to core and is designed to work with CakePHP 1.2 git-svn-id: svn://dwoo.org/dwoo/trunk@264 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion ddea0cecf873c9dd2b2bf93d58d9d66d4baef55b
at Monday 29 June 2009 23:23:34 UTC fixes #6 Slight performance improvement with big inheritance trees git-svn-id: svn://dwoo.org/dwoo/trunk@263 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 907ce4e809a5430e75a13fb9a35c4dfd0a660af3
at Wednesday 11 March 2009 13:06:13 UTC changelog updates git-svn-id: svn://dwoo.org/dwoo/trunk@257 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8f3fd490c6fc6d9c56c247b6b396d1a7624629c2
at Wednesday 11 March 2009 10:43:26 UTC Removed 'phpunit' generated tests (done by NetBeans) git-svn-id: svn://dwoo.org/dwoo/trunk@256 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d70fef110292658358385b0d7713d81b4bbb500d
at Wednesday 11 March 2009 10:33:37 UTC Fixes #2 - Updated Codeigniter adapter added Includes the bugfix for the problem as mentioned in the forums (http://forum.dwoo.org/viewtopic.php?pid=517#p517) git-svn-id: svn://dwoo.org/dwoo/trunk@255 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d630b126697582af188050bbf12d2657465b71da
at Tuesday 24 February 2009 20:21:37 UTC Added magic __call() method to allow more friendly calls from <?php ?> block in the templates git-svn-id: svn://dwoo.org/dwoo/trunk@253 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 703f30395af20db6862f3efc8f65e5ef1075bb77
at Friday 20 February 2009 07:40:46 UTC Allows access of static properties as {Foo::$bar} git-svn-id: svn://dwoo.org/dwoo/trunk@252 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 93275b7f87fd70afd6b4d7b6b691df4bfa7c23b6
at Tuesday 10 February 2009 08:17:58 UTC Fixes parsing of vars with string keys that was too greedy [fixes #20] git-svn-id: svn://dwoo.org/dwoo/trunk@250 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a18ac29059d877946620c4fe866ad76b42c4d317
at Monday 9 February 2009 20:54:58 UTC Fixed a debuging code accident git-svn-id: svn://dwoo.org/dwoo/trunk@249 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cd640a2bc75d534e8c1d9891546be55de3198336
at Saturday 7 February 2009 13:37:45 UTC Fixes #17 - thanks to Andreas de Pretis for the patch git-svn-id: svn://dwoo.org/dwoo/trunk@248 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a2783db6c8252e0845d106015b50757b1417acf6
at Thursday 5 February 2009 18:26:21 UTC bad day. git-svn-id: svn://dwoo.org/dwoo/trunk@246 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion bd3508448973ce57d7025c12451aadd65324f498
at Thursday 5 February 2009 15:34:07 UTC really fixes #18 hopefully git-svn-id: svn://dwoo.org/dwoo/trunk@245 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7093aa381280ccf57b440fe6411a819331afcf29
at Thursday 5 February 2009 13:34:03 UTC Dwoo_Template::$chmod is now enforced for directories as well fixes #18 git-svn-id: svn://dwoo.org/dwoo/trunk@244 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b7950d497850b86e91fb22d1af0e6073fe5642ec
at Tuesday 27 January 2009 09:57:34 UTC * Fixes assignments failing with autoEscape enabled git-svn-id: svn://dwoo.org/dwoo/trunk@242 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion bb9b418ede26089f19699385d145c7ed7ef82ec5
at Thursday 22 January 2009 12:56:34 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@241 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 691afcaafc4e7dbd3441e8dd718729d88711907e
at Wednesday 21 January 2009 12:43:36 UTC Added a few tests for regressions and fixed a parameter parsing bug for sub-templates git-svn-id: svn://dwoo.org/dwoo/trunk@240 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a6a5000291340a4c93d6c71ddb89b8de9a5d14c0
at Wednesday 21 January 2009 12:02:06 UTC * Fixed parameter parsing issue when a plugin name was all uppercased git-svn-id: svn://dwoo.org/dwoo/trunk@239 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7d4083db3e5f0ab3a1bc66aeb36e0c1da7cc62bb
at Wednesday 21 January 2009 11:03:48 UTC * Adding a bunch of util functions for advanced sub-template hacking git-svn-id: svn://dwoo.org/dwoo/trunk@237 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7ea83358d52e08a17fa18ea4b5d76e54b4fbbea2
at Saturday 10 January 2009 21:27:27 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@233 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 92faad5d42a03469bc3df61facc00aa99512c259
at Wednesday 24 December 2008 01:21:53 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@229 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 828707eda455c0fb92481cc44c4de97f92bbd619
at Wednesday 24 December 2008 01:10:23 UTC Prep release 1.0.1 git-svn-id: svn://dwoo.org/dwoo/trunk@226 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a57f533a55d1a96c91fc0c175e468f3b6b3f829b
at Wednesday 24 December 2008 00:56:03 UTC 1.0.1 changelog git-svn-id: svn://dwoo.org/dwoo/trunk@224 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 65226f3e595503ec8c6d99ff2a25598e4a6736ad
at Sunday 21 December 2008 23:06:00 UTC Fixes regression from r220 git-svn-id: svn://dwoo.org/dwoo/trunk@223 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion dd2caf814427a758bce61ab96a3a51dd05d59e81
at Tuesday 16 December 2008 12:58:39 UTC Fixes wrong arg order when using cycle with assign git-svn-id: svn://dwoo.org/dwoo/trunk@222 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a4b98908d77c8770e2cea8479f8359af05cfdcc8
at Monday 24 November 2008 07:32:56 UTC Direct assignments like {$foo = 5} now allow spaces around the operator git-svn-id: svn://dwoo.org/dwoo/trunk@220 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion ac01ee14f6a4f22e127b9ec048745ca602854788
at Wednesday 12 November 2008 00:13:09 UTC Fixed modulo operator in if statements git-svn-id: svn://dwoo.org/dwoo/trunk@216 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9aa3515e5d106cb38933d0545f138fd108dd56b7
at Wednesday 22 October 2008 21:14:12 UTC removes BC checks git-svn-id: svn://dwoo.org/dwoo/trunk@207 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6075f2154544417e6a5430a8fc654eeffd6d188e
at Wednesday 22 October 2008 21:09:06 UTC cleanup of some \r\n's git-svn-id: svn://dwoo.org/dwoo/trunk@206 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7996536cbfdda5c4e7a79893b69deb5055fb90f0
at Wednesday 22 October 2008 21:02:53 UTC cleans up {for} git-svn-id: svn://dwoo.org/dwoo/trunk@205 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6dd36bca701b112d09a70dc024d818effa336f4b
at Wednesday 22 October 2008 18:37:38 UTC + SmartyCompat: Added a {section} plugin but I strongly discourage using it, it was really made to support legacy templates git-svn-id: svn://dwoo.org/dwoo/trunk@204 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion be3fb1b87e7b168128351a73b8f777d5cf2e59e2
at Thursday 9 October 2008 12:48:30 UTC * Fix in comment stripping git-svn-id: svn://dwoo.org/dwoo/trunk@200 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 770f1f7073758567c640698b4acc13561c3d14f6
at Wednesday 8 October 2008 06:38:09 UTC Small fixes here and there git-svn-id: svn://dwoo.org/dwoo/trunk@195 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b9d663a3abdf6baf46f7bcc58bed81c1ef007bbc
at Wednesday 8 October 2008 06:36:19 UTC * ZendFramework: major overhaul thanks to Denis Arh, templates files should probably be moved in the scripts subfolder after this update though git-svn-id: svn://dwoo.org/dwoo/trunk@194 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8f3894d84c3d6d945da9d668e185640cb690ef42
at Monday 6 October 2008 23:08:33 UTC Compiler: the modifier syntax (|foo) can now be applied on functions and on complex variables i.e. {$obj->getStuff()|upper} or {lower('foo')|upper} git-svn-id: svn://dwoo.org/dwoo/trunk@193 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 78e0522e253b7bfffd15cac6943024a2752a7bbf
at Wednesday 1 October 2008 11:49:25 UTC Fixes block plugins param handling (failed with arrays) git-svn-id: svn://dwoo.org/dwoo/trunk@192 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e1d4ca2464d5583a5b7aaee80dc1bc6ff248d7b2
at Friday 26 September 2008 20:12:28 UTC * Fixed parsing bug in {func()->propertyOfReturnedObject} git-svn-id: svn://dwoo.org/dwoo/trunk@190 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9bc397884672719258b60642cccb921d2940250a
at Friday 26 September 2008 18:35:53 UTC * adds stuff in the test suite to allow easier test running on other setups git-svn-id: svn://dwoo.org/dwoo/trunk@187 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 70c14e918bbb1a741eb9b5997e421cd47832e6fe
at Wednesday 17 September 2008 09:43:06 UTC * Fixed file template class reading from the string compiler factory - thanks to MrOxiMoron for the patch git-svn-id: svn://dwoo.org/dwoo/trunk@184 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d3c7dbd73547bd9ef10095325d11feecf3dbe93b
at Tuesday 16 September 2008 22:26:31 UTC * Plugins: improved the dump plugin, it now displays object's properties and optionally public methods (if the new show_methods arg is set to true) (thanks to Stephan Wentz for the patch) git-svn-id: svn://dwoo.org/dwoo/trunk@183 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6ca4be14e6e8e04b7562535804bbb791ed6ff401
at Tuesday 16 September 2008 08:00:31 UTC Oops (copy paste is evil) git-svn-id: svn://dwoo.org/dwoo/trunk@182 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion ceaf53f589ad0732bacfb373139c5f29e0d78f6a
at Thursday 11 September 2008 19:49:27 UTC Added parameters to provide a custom engine (extends Dwoo) or a custom data class (extends Dwoo_Data) in the ZendFramework adapter (thanks V0r_X for the patch) git-svn-id: svn://dwoo.org/dwoo/trunk@177 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion c266d49f474211056e29ae5925130ae7bf1bb638
at Monday 8 September 2008 10:12:22 UTC Updates compiled runtime git-svn-id: svn://dwoo.org/dwoo/trunk@175 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion bd14bd1c65291901840594debadeb7da25f7b02f
at Sunday 7 September 2008 22:09:18 UTC + 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 git-svn-id: svn://dwoo.org/dwoo/trunk@171 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion dc37bfb6ce9c7d580fc9de49a945eae850a3e523
at Sunday 7 September 2008 21:55:11 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@168 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b34df6afe5a9af47203d4c080fb3004868dc231f
at Sunday 7 September 2008 21:23:55 UTC Added custom agavi helpers git-svn-id: svn://dwoo.org/dwoo/trunk@167 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 732f7cdac785ac279f208a391832aa9df97a112c
at Sunday 7 September 2008 21:10:14 UTC + Adapters: Added the Agavi interface for Dwoo (see /Dwoo/Adapters/Agavi/README) git-svn-id: svn://dwoo.org/dwoo/trunk@166 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 848d2a8a5b6477d4c04d1fe37e76582f3fd11326
at Sunday 31 August 2008 23:12:01 UTC ! 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 * 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 git-svn-id: svn://dwoo.org/dwoo/trunk@163 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b1eae358b98292b877a0c2b69db7dacb71132a65
at Saturday 30 August 2008 00:16:01 UTC * Removes some checks for Dwoo_Filter_ prefix in the addFilter method git-svn-id: svn://dwoo.org/dwoo/trunk@161 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 668df7e52c5f267976f674380e50dce0ccd40083
at Monday 25 August 2008 15:46:37 UTC * Fixed {if} failing with conditions using upper case operators (i.e. AND) git-svn-id: svn://dwoo.org/dwoo/trunk@156 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 693ea694e10abcb87f2940633e37b56e4bf91ca0
at Friday 22 August 2008 22:00:33 UTC * Fixed compiler warning when doing {func()->method()} or {func()->property} git-svn-id: svn://dwoo.org/dwoo/trunk@154 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a290bfd4d80b41effc0bc6ee2ddb4727521d68e4
at Sunday 17 August 2008 15:52:22 UTC * Filters array-regexes git-svn-id: svn://dwoo.org/dwoo/trunk@148 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 959b4e63f95e43437bc03d6c04d3f9e4c1fc2017
at Wednesday 13 August 2008 09:49:42 UTC * Loader::addDirectory now checks that the path exists git-svn-id: svn://dwoo.org/dwoo/trunk@146 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d9c6d6b9e9081c668f0267e19863ab9340244885
at Sunday 3 August 2008 13:02:26 UTC Prep release 0.9.3 git-svn-id: svn://dwoo.org/dwoo/trunk@140 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 94616134e33fde2b1acbe1a37e10a626e3b30126
at Sunday 3 August 2008 09:31:41 UTC * Fixes ZF View git-svn-id: svn://dwoo.org/dwoo/trunk@138 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cacec94bac0ba8621b14332de00d5a5f464c39a6
at Wednesday 30 July 2008 16:57:36 UTC * Fixes {foo()->Bar} git-svn-id: svn://dwoo.org/dwoo/trunk@135 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b5cb468221843e86b09841435d80dca0521c292e
at Tuesday 29 July 2008 22:20:20 UTC + Added loader tests git-svn-id: svn://dwoo.org/dwoo/trunk@131 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8c5c98bf690a4f68c3ab57a0ce21bbf1ec68a81a
at Tuesday 29 July 2008 21:34:16 UTC + Adds Plugin Proxy functionality git-svn-id: svn://dwoo.org/dwoo/trunk@130 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e01426a6880f0b0426859af8ad517ab994d6ca2f
at Sunday 27 July 2008 21:29:09 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@129 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 82351826fb04bfa4d9a5f59cd0b4914c5554ccd6
at Thursday 24 July 2008 11:45:40 UTC * Fixed the Dwoo_ILoader interface and implemented it in Dwoo_Loader now git-svn-id: svn://dwoo.org/dwoo/trunk@127 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7d76b1debd2d6d41843e607eb25d24946860fdff
at Sunday 20 July 2008 17:11:52 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@126 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion aeda26c29761871f6a4111b10e6276ba4960e626
at Sunday 20 July 2008 15:14:16 UTC * Removes double 'count' from security policy's allowed functions git-svn-id: svn://dwoo.org/dwoo/trunk@124 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e3eb1b763f123bdfd831342381e8ac971e1c7c97
at Friday 11 July 2008 06:16:47 UTC + Syntax: Static methods can be called using {Class::method()} git-svn-id: svn://dwoo.org/dwoo/trunk@122 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7869a71a158d78700f05c791bf6d4bf196f22b20
at Thursday 3 July 2008 10:34:54 UTC + Added a test for auto escape used in params git-svn-id: svn://dwoo.org/dwoo/trunk@120 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion c2680477f2c8b21a746bbfe42fbfafabf401c0f5
at Tuesday 1 July 2008 22:30:03 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@119 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6c44519e923514cb11b977c42011c16259501cf1
at Tuesday 1 July 2008 19:58:58 UTC + Syntax: Added the ";" token that allows to group multiple instructions in one single template tag, for example: {if $foo; "> $foo";$bar;/} is equal to: {if $foo}> {$foo}{$bar}{/} - It is not that useful with {/} as delimiters but might come in handy to those using longer delimiters * Compiler now allows the use of the right delimiter inside strings (i.e. {"}"}) git-svn-id: svn://dwoo.org/dwoo/trunk@118 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 960fba69e3f33fd6b8a5f781106bd36ffe5bdce9
at Monday 30 June 2008 21:48:42 UTC * Fixes non-existing loader being used git-svn-id: svn://dwoo.org/dwoo/trunk@116 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 99ad72d59e732966e8d6f7e1d20b52980c3b43d2
at Friday 27 June 2008 23:39:38 UTC Docs 0.9.2 git-svn-id: svn://dwoo.org/dwoo/trunk@108 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 66070b49480d1dca3c8801d7907e5b15b904a198
at Friday 27 June 2008 22:49:29 UTC * Fix single line comments git-svn-id: svn://dwoo.org/dwoo/trunk@105 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 77501e6151025ac49bb3570dac8f96582380a433
at Friday 27 June 2008 22:00:09 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@103 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8d7eeff5aad003e695e3af03081091f26b5494fe
at Friday 27 June 2008 21:16:48 UTC * Line count fix git-svn-id: svn://dwoo.org/dwoo/trunk@102 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cb91f7d072dfe105347d1c5a763abf838e3b626a
at Friday 27 June 2008 19:31:26 UTC * Small compiler fix * Updated compiled version git-svn-id: svn://dwoo.org/dwoo/trunk@101 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion c6133a3e9e5e64ff5a894aa9bc662932663453e5
at Friday 27 June 2008 04:14:48 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@100 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion d0cce28f5c75c33d462b4e4a2ba14a1b5b148e3e
at Monday 16 June 2008 23:15:49 UTC * Made the dependency on hash ext optional, although using it offers better perfs with Template_String git-svn-id: svn://dwoo.org/dwoo/trunk@97 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b8495654d899753fe9814a6bafc7bdfcbfcca46e
at Friday 13 June 2008 02:27:59 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@96 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a19f48d31469864eba05ba152c69d6dc647d73d6
at Friday 13 June 2008 02:24:00 UTC * Plugins: Added a "trim" parameter to {capture} that trims the captured text git-svn-id: svn://dwoo.org/dwoo/trunk@95 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 64540849214bba1ee8939f7af35cadfe3cc95cec
at Thursday 12 June 2008 16:05:28 UTC * Fixed reading object properties handled by __get() git-svn-id: svn://dwoo.org/dwoo/trunk@92 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b9a093a220449469d28f8aefe8cd3b88ba0b61e1
at Friday 6 June 2008 18:35:45 UTC * Plugins: added a fourth 'bool $case_sensitive' parameter to {replace} git-svn-id: svn://dwoo.org/dwoo/trunk@87 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 94b00659893d12a499245542b4aac7d14dd20a48
at Monday 2 June 2008 14:07:24 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@82 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e1e75fed3a96612070e8f687a8e21544d6dedbaf
at Friday 30 May 2008 16:34:09 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@79 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion af562417ebfd8d86a8acb83fff7c974c075d7f0e
at Friday 30 May 2008 02:53:54 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@77 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8cebf8c820a68d19ff8e547cafcca334cab5db56
at Friday 30 May 2008 02:52:39 UTC Docs 0.9.1 git-svn-id: svn://dwoo.org/dwoo/trunk@76 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion dbcd8cb6970336d9e6f1975ea91356389ccd8861
at Friday 30 May 2008 02:42:25 UTC Prep release 0.9.1 git-svn-id: svn://dwoo.org/dwoo/trunk@75 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9ee99ce26ee527c412dd17b2d96826d7748e0049
at Friday 30 May 2008 02:03:52 UTC * Cosmetics git-svn-id: svn://dwoo.org/dwoo/trunk@73 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion da2f8fa1cd6cb2caa379cd0dcf847bb0355547a2
at Thursday 29 May 2008 00:54:23 UTC * Auto-escape now checks the var type before doing it's deed to prevent messing up with arrays git-svn-id: svn://dwoo.org/dwoo/trunk@71 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 7341faf004707f4c3452527a67fafa5de0c19bb4
at Tuesday 27 May 2008 16:16:25 UTC * Documented most function plugins git-svn-id: svn://dwoo.org/dwoo/trunk@69 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6300898220f56c5c146a1ab28151fdf72cdbe0ae
at Saturday 24 May 2008 08:11:15 UTC + API: Added Dwoo_Compiler->setAutoEscape() and getAutoEscape() to modify the automatic html entity escaping setting. This is disabled by default, and when enabled can be overriden with the {safe $var} plugin or the {auto_escape disable} block plugin. The block plugin can also be used to enable this mode from within a template * Commented some plugins git-svn-id: svn://dwoo.org/dwoo/trunk@68 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6a2aa583cff50b3702645fd32aa9b8e7c45734b2
at Friday 23 May 2008 00:59:11 UTC * Fixed $dwoo->addResource() breaking if the resource class was not loaded yet, autoload should now be called (thanks mike) git-svn-id: svn://dwoo.org/dwoo/trunk@67 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 914a96588dd0f85b046029319e91fc15f60c7171
at Monday 19 May 2008 04:39:33 UTC * Fixed complex variables (i.e. {$_root[$c[$x.0]].0}) parsing bugs git-svn-id: svn://dwoo.org/dwoo/trunk@65 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9749a55f649d6899bc0169a431032744c39709cf
at Friday 16 May 2008 17:46:30 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@63 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cfb65a97e88c53e1e2c3c3f5cd70ae9b01856b08
at Friday 16 May 2008 17:43:41 UTC * Fixed a bug in {date_format} that prevented anything but unix timestamps to work git-svn-id: svn://dwoo.org/dwoo/trunk@62 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6b6abd1d110f71d12f1fce4618cf9e94376d1de9
at Monday 12 May 2008 17:44:14 UTC * Optimized scope handling functions git-svn-id: svn://dwoo.org/dwoo/trunk@60 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8610862ba84b545c0073229436bf96868070b64d
at Saturday 10 May 2008 04:53:54 UTC * Split up all classes into their respective Prefix/Name.php files + Added a compiled version of Dwoo that loads faster, 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 git-svn-id: svn://dwoo.org/dwoo/trunk@55 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion b076166a8ec44e51c0f554f236d4bed48ee81e4e
at Saturday 10 May 2008 04:03:06 UTC + 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 git-svn-id: svn://dwoo.org/dwoo/trunk@54 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion dc02338d7d58be9846639b7444ab78bf0d97c125
at Thursday 8 May 2008 14:53:05 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@50 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8207c1b0718c00aeb98876735020bcaf5e90998d
at Tuesday 6 May 2008 08:52:46 UTC * Adding some comments git-svn-id: svn://dwoo.org/dwoo/trunk@48 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 860ce2d98fbec399f674db062aa09eceaa74276d
at Tuesday 6 May 2008 03:54:39 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@44 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion daf0a0149cd4e669978b975f5d69fb78dc5acb78
at Monday 5 May 2008 19:01:01 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@42 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion cc6c72f5f11ad1b67c932966f93e0acf799b76e3
at Monday 5 May 2008 18:50:52 UTC * Removed php closing tags at the end of files git-svn-id: svn://dwoo.org/dwoo/trunk@41 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 87d1e680eb74c01c303874b15b2ea85c4d39adde
at Monday 5 May 2008 18:37:30 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@40 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a7d161cec81d0ecc1ffcffb90594ed52b2b7ba5c
at Monday 5 May 2008 18:30:57 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@39 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9cf6ad5f4a50a45b83a9610dc44662c3b4e23b56
at Sunday 4 May 2008 05:48:35 UTC * Changed all class names to be PEAR compliant git-svn-id: svn://dwoo.org/dwoo/trunk@33 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 937188758f7ff3e1280110bbbe692bb158f1167d
at Monday 28 April 2008 16:10:03 UTC * Moves core classes to Dwoo/* excepted Dwoo.php that remains at the top level git-svn-id: svn://dwoo.org/dwoo/trunk@31 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion dc33f4178b7bce94be39b4d0e64766e8939d8df6
at Monday 28 April 2008 16:03:16 UTC ! Intermediate commit, unstable state * Changed all line endings (unix) and uniformized tabs/spaces to full tabs (tabspace 4) * Changed Dwoo::getCurrentTemplate() to Dwoo::getTemplate() and Dwoo::getTemplate() to Dwoo::templateFactory() * Small changes in the compiler git-svn-id: svn://dwoo.org/dwoo/trunk@30 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 92a1ced8f502c9916c44b0a5dfb210489f97a656
at Tuesday 15 April 2008 00:01:50 UTC + A few more assign tests git-svn-id: svn://dwoo.org/dwoo/trunk@28 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 918408ef38262b85e95545ed2aa88933a5de38dc
at Sunday 13 April 2008 16:59:14 UTC + Added {do} that executes whatever you feed it whitout echoing the result, used internally for extends but you can use it if you find a use for it git-svn-id: svn://dwoo.org/dwoo/trunk@25 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 717845defd87204dab3ee234c99b0c6c8975ae02
at Sunday 13 April 2008 04:05:50 UTC Tiny copy paste fix git-svn-id: svn://dwoo.org/dwoo/trunk@24 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 70bd37987ae3f215a2ed15a4a8b30aa8437e79fc
at Sunday 13 April 2008 04:03:55 UTC + Added {extends} and {block} to handle template inheritance, read more about it at http://wiki.dwoo.org/index.php/TemplateInheritance {extendsCheck} is just an helper plugin for {extends} and should not be called by users git-svn-id: svn://dwoo.org/dwoo/trunk@22 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 9e48c870fa76b7893540249a1d9d8b3a853b1c84
at Wednesday 9 April 2008 19:53:52 UTC * Performance improvements [removed isset calls when doing {$var} but not inside other blocks/functions] git-svn-id: svn://dwoo.org/dwoo/trunk@18 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6b42834f9b45ed044ed0cb766b66b5a463900c71
at Wednesday 9 April 2008 19:38:01 UTC * Performance improvements [simplified block stack / topLevelBlock] git-svn-id: svn://dwoo.org/dwoo/trunk@17 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 6d728ce72de6192a38f9b871da07eb7db7781813
at Wednesday 9 April 2008 02:47:32 UTC * Fixed a classpath rebuilding bug that occured on some UNIX platforms due to glob() inconsistencies git-svn-id: svn://dwoo.org/dwoo/trunk@15 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion a7e3b93b8fa53e807b13cbd487d58ff2eedf561e
at Wednesday 9 April 2008 01:58:37 UTC ! BC Break: Smarty's @ operator for modifiers is now reversed, for example $array|reverse will reverse the items of that array while $array|@reverse will reverse each item of the given array (as if you used array_map) # Release 0.3.4 git-svn-id: svn://dwoo.org/dwoo/trunk@13 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion bfa5635a05066d65270be703ee5354a7cded7566
at Saturday 5 April 2008 05:36:28 UTC ! BC Break: DWOO_PATH changed to DWOO_DIR + Added the DwooException class + Added DWOO_CACHEDIR and DWOO_COMPILEDIR constants that you can set before including Dwoo.php to override the defaults (although Dwoo->setCacheDir/setCompileDir() still work to change that if required) * Made all the error triggering more consistent git-svn-id: svn://dwoo.org/dwoo/trunk@8 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 8b28f80bb96c6d118fac3d8084ea023327617c5d
at Friday 4 April 2008 15:08:51 UTC git-svn-id: svn://dwoo.org/dwoo/trunk@7 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion 994b3c877d636f8c862d6eaaa424a03c7ec05502
at Friday 4 April 2008 12:58:00 UTC * Small test fix git-svn-id: svn://dwoo.org/dwoo/trunk@6 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e25e1870d379942bb602b67832cd15b69fcedcc4
at Sunday 30 March 2008 12:10:13 UTC + Syntax: Added support for method calls on objects i.e. {$foo->bar()} + Added support for smarty security features, see the DwooSecurityPolicy class and $dwoo->setSecurityPolicy() + API: Added a DwooCompiler->setLooseOpeningHandling() method that, if set to true, allows tags to * Fixed {elseif} bug that appeared when multiple elseif tags were used in a row * Syntax: Improved simple math support to work within variable variables (i.e. you can do {$array[$index+1]}) and within strings as well. To prevent this enclose the variables in backticks (i.e. {"$foo/$bar"} will do the math while {"`$foo`/$bar"} won't as $foo is properly delimited) git-svn-id: svn://dwoo.org/dwoo/trunk@4 0598d79b-80c4-4d41-97ba-ac86fbbd088bVersion e31da1c6cd4857ac1efc5a7d9d103d6358810dd9
at Sunday 30 March 2008 01:23:53 UTC First Import / 0.3.3 git-svn-id: svn://dwoo.org/dwoo/trunk@2 0598d79b-80c4-4d41-97ba-ac86fbbd088bDiff
| 5fc482 | e3eb1b | a/CHANGELOG |
|---|---|---|
| 5 | 5 | {if $foo}> {$foo}{$bar}{/} - This also allow block operations such as: |
| 6 | 6 | {a http://url.com; "Text" /} which equals to {a http://url.com}Text{/} |
| 7 | 7 | + Syntax: Block plugins that you want to call without content can be |
| 8 | - self-closed just like XML tags (e.g. {a "http://url.com" /} ) | |
| 8 | + self-closed just like XML tags (e.g. {a "http://url.com" /} ). Be careful not | |
| 9 | + to close a non-block plugin like that however, since it will close it's | |
| 10 | + parent block | |
| 9 | 11 | + Plugins: Added the {a} block plugin to generate <a> tags |
| 10 | 12 | + API: Added Dwoo_Plugin::paramsToAttributes() utility function to help |
| 11 | 13 | with the creation of compilable xml/html-related plugins |
| 14 | ++ Syntax: Static methods can be called using {Class::method()} | |
| 12 | 15 | * Syntax: Math expressions in strings are now only allowed when the entire |
| 13 | 16 | expression is delimited, e.g. {"/$foo/$bar"} evaluates as just that while |
| 14 | 17 | {"/`$foo/$bar`"} will result in "/".($foo/$bar), therefore processing the / |
| 5fc482 | e3eb1b | a/UPGRADE_NOTES |
| 2 | 2 | ----------------------------------------------------------------------------- |
| 3 | --- 0.9.2 | |
| 3 | +-- Upgrading to Dwoo v0.9.2 | |
| 4 | 4 | ----------------------------------------------------------------------------- |
| 5 | 5 | |
| 6 | 6 | 1. Block plugins |
| 5fc482 | e3eb1b | a/lib/Dwoo/Compiler.php |
| 1106 | 1106 | } elseif ($first==='"' || $first==="'") { |
| 1107 | 1107 | // string |
| 1108 | 1108 | $out = $this->parseString($in, $from, $to, $parsingParams, $curBlock, $pointer); |
| 1109 | - } elseif (preg_match('/^[a-z][a-z0-9_]*('.(is_array($parsingParams)||$curBlock!='root'?'':'\s+[^(]|').'\s*\(|\s*'.$this->rdr.'|\s*;)/i', $substr)) { | |
| 1109 | + } elseif (preg_match('/^[a-z][a-z0-9_]*(?:::[a-z][a-z0-9_]*)?('.(is_array($parsingParams)||$curBlock!='root'?'':'\s+[^(]|').'\s*\(|\s*'.$this->rdr.'|\s*;)/i', $substr)) { | |
| 1110 | 1110 | // func |
| 1111 | 1111 | $out = $this->parseFunction($in, $from, $to, $parsingParams, $curBlock, $pointer); |
| 1112 | 1112 | } elseif ($first === ';') { |
| 1179 | 1179 | protected function parseFunction($in, $from, $to, $parsingParams = false, $curBlock='', &$pointer = null) |
| 1180 | 1180 | { |
| 1181 | 1181 | $cmdstr = substr($in, $from, $to-$from); |
| 1182 | - preg_match('/^([a-z][a-z0-9_]*)(\s*'.$this->rdr.'|\s*;)?/i', $cmdstr, $match); | |
| 1182 | + preg_match('/^([a-z][a-z0-9_]*(?:::[a-z][a-z0-9_]*)?)(\s*'.$this->rdr.'|\s*;)?/i', $cmdstr, $match); | |
| 1183 | + | |
| 1184 | + if (empty($match[1])) { | |
| 1185 | + throw new Dwoo_Compilation_Exception($this, 'Parse error, invalid function name'); | |
| 1186 | + } | |
| 1187 | + | |
| 1188 | + $func = $match[1]; | |
| 1183 | 1189 | |
| 1184 | 1190 | if (!empty($match[2])) { |
| 1185 | 1191 | $cmdstr = $match[1]; |
| 1186 | 1192 | } |
| 1187 | 1193 | |
| 1188 | - if ($this->debug) echo 'FUNC FOUND<br />'; | |
| 1194 | + if ($this->debug) echo 'FUNC FOUND ('.$func.')<br />'; | |
| 1189 | 1195 | |
| 1190 | 1196 | $paramsep = ''; |
| 1191 | 1197 | |
| 1211 | 1217 | $state = 0; |
| 1212 | 1218 | |
| 1213 | 1219 | if ($paramspos === false) { |
| 1214 | - if (strpos($cmdstr, ' ')) { | |
| 1215 | - $func = substr($cmdstr, 0, strpos($cmdstr, ' ')); | |
| 1216 | - } else { | |
| 1217 | - $func = $cmdstr; | |
| 1218 | - } | |
| 1219 | 1220 | $params = array(); |
| 1220 | 1221 | |
| 1221 | 1222 | if ($curBlock !== 'root') { |
| 1222 | 1223 | return $this->parseOthers($in, $from, $to, $parsingParams, $curBlock, $pointer); |
| 1223 | 1224 | } |
| 1224 | 1225 | } else { |
| 1225 | - $func = rtrim(substr($cmdstr, 0, $paramspos)); | |
| 1226 | 1226 | $whitespace = strlen(substr($cmdstr, strlen($func), $paramspos-strlen($func))); |
| 1227 | 1227 | $paramstr = substr($cmdstr, $paramspos+1); |
| 1228 | 1228 | if (substr($paramstr, -1, 1) === $paramsep) { |
| 1301 | 1301 | if ($this->debug) echo 'FUNC ADDS '.((isset($paramstr) ? strlen($paramstr) : 0) + (')' === $paramsep ? 2 : ($paramspos === false ? 0 : 1)) + strlen($func)).' TO POINTER<br/>'; |
| 1302 | 1302 | } |
| 1303 | 1303 | |
| 1304 | - if ($curBlock === 'method' || $func === 'do') { | |
| 1304 | + if ($curBlock === 'method' || $func === 'do' || strstr($func, '::') !== false) { | |
| 1305 | 1305 | $pluginType = Dwoo::NATIVE_PLUGIN; |
| 1306 | 1306 | } else { |
| 1307 | 1307 | $pluginType = $this->getPluginType($func); |
| 5fc482 | e3eb1b | a/tests/CompilerTests.php |
| 528 | 528 | |
| 529 | 529 | $this->assertEquals('a <?php echo "foo"; ?>', $this->dwoo->get($tpl, array('foo'=>'a <?php echo "foo"; ?>'), $this->compiler)); |
| 530 | 530 | } |
| 531 | + | |
| 532 | + public function testStaticMethodCall() | |
| 533 | + { | |
| 534 | + $tpl = new Dwoo_Template_String('{upper MethodCallsHelper::staticFoo(bar "baz")}'); | |
| 535 | + $tpl->forceCompilation(); | |
| 536 | + | |
| 537 | + $this->assertEquals('-BAZBAR-', $this->dwoo->get($tpl, array(), $this->compiler)); | |
| 538 | + } | |
| 531 | 539 | } |
| 532 | 540 | |
| 533 | 541 | class MethodCallsHelper { |
| 552 | 560 | return ($int+5).$str; |
| 553 | 561 | } |
| 554 | 562 | public function __toString() { return 'obj'; } |
| 563 | + | |
| 564 | + public static function staticFoo($bar, $baz) { | |
| 565 | + return "-$baz$bar-"; | |
| 566 | + } | |
| 555 | 567 | } |