From: x2000habouzit Date: Tue, 23 Nov 2004 23:03:40 +0000 (+0000) Subject: the plugin needed for template glob including X-Git-Tag: xorg/old~816 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9e964fd920e181d6df7be2fe2388df9cb22256b9;p=platal.git the plugin needed for template glob including with that modifier you can write : {foreach from="some_dir/*.foo.tpl"|glob item=tpl} {include file=$tpl} {/foreach} nice isn't it ? --- diff --git a/plugins/modifier.glob.php b/plugins/modifier.glob.php new file mode 100644 index 0000000..e828f10 --- /dev/null +++ b/plugins/modifier.glob.php @@ -0,0 +1,38 @@ +root.'/templates/'.$string); +} + +// }}} + +?>