- 29 Apr, 2008 1 commit
-
-
Seldaek authored
* 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-ac86fbbd088b
-
- 20 Apr, 2008 1 commit
-
-
Seldaek authored
{%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. + Plugins: Added {loop} that combines {foreach} and {with}, see http://wiki.dwoo.org/index.php/Block:loop for details * API: DwooITemplate->clearCache now requires a Dwoo instance as its first arg, should not affect you unless you built a custom template class from scratch * {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 * Fixed a regression in the handling of custom class plugins * Fixed a bug in DwooSecurityPolicy->getAllowedDirectories(), no security issue though * TestFest happened early for Dwoo, lots of new tests and more code covered git-svn-id: svn://dwoo.org/dwoo/trunk@29 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
- 15 Apr, 2008 3 commits
-
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@28 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
+ Syntax: Added shortcut for $dwoo.*, you can now use {$.const.FOO} instead of {$dwoo.const.FOO} for example, applies to all $dwoo.* vars * Fixes some broken tests and adds a bunch (100 tests reached, hurray) git-svn-id: svn://dwoo.org/dwoo/trunk@27 0598d79b-80c4-4d41-97ba-ac86fbbd088b -
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@26 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
- 14 Apr, 2008 1 commit
-
-
Seldaek authored
+ 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-ac86fbbd088b
-
- 13 Apr, 2008 4 commits
-
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@24 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@23 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
+ 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-ac86fbbd088b -
Seldaek authored
+ Added a bunch of utility functions to DwooCompiler, allowing compiled plugins to access more of the compiler internals + API: Added getSource(), getUid() and getResourceIdentifier() to DwooITemplate + API: Added setSecurityPolicy() too DwooICompiler and modified the arguments of its compile() method * Reworked Dwoo template rendering to avoid variable conflicts git-svn-id: svn://dwoo.org/dwoo/trunk@21 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
- 11 Apr, 2008 1 commit
-
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@20 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
- 10 Apr, 2008 3 commits
-
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@19 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
* 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-ac86fbbd088b -
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@17 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
- 09 Apr, 2008 3 commits
-
-
Seldaek authored
doesn't change anything for you unless you called output(*, *, *, true) directly to emulate get(). This was done to reduce some overhead git-svn-id: svn://dwoo.org/dwoo/trunk@16 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
* 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-ac86fbbd088b
-
Seldaek authored
$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-ac86fbbd088b
-
- 05 Apr, 2008 6 commits
-
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@12 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@11 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
get_registered_object(). All features can not be supported by the adapter though so you might get compatibility warnings * Changed automatic cacheId generation in DwooTemplateFile/String to be faster git-svn-id: svn://dwoo.org/dwoo/trunk@10 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@9 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
+ 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-ac86fbbd088b
-
svn://dwoo.org/dwoo/trunk@7Seldaek authored
-
- 04 Apr, 2008 2 commits
-
-
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@6 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
Seldaek authored
Dwoo/cache directory, that way you don't have to make your plugin directory writeable * Converted spaces to tabs in some files git-svn-id: svn://dwoo.org/dwoo/trunk@5 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
- 30 Mar, 2008 3 commits
-
-
Seldaek authored
+ 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-ac86fbbd088b -
Seldaek authored
git-svn-id: svn://dwoo.org/dwoo/trunk@2 0598d79b-80c4-4d41-97ba-ac86fbbd088b
-
svn://dwoo.org/dwoo/trunk@1Seldaek authored
-