From 9e964fd920e181d6df7be2fe2388df9cb22256b9 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 23 Nov 2004 23:03:40 +0000 Subject: [PATCH] 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 ? --- plugins/modifier.glob.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 plugins/modifier.glob.php 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); +} + +// }}} + +?> -- 2.1.4