From 7a05087f475e897560c34a614108dae50ba05c62 Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 5 Aug 2006 03:21:14 +0000 Subject: * Turn on HTML::Template loop_context_vars; not actually used in stock templates but can be useful for things like making comma-delimited lists of tags or what have you. --- IkiWiki.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'IkiWiki.pm') diff --git a/IkiWiki.pm b/IkiWiki.pm index 5bb8ea1c9..0907df6a1 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -432,7 +432,9 @@ sub template_params (@) { #{{{ my $text_ref = shift; $$text_ref=&Encode::decode_utf8($$text_ref); }, - filename => "$config{templatedir}/$filename", @_; + filename => "$config{templatedir}/$filename", + loop_context_vars => 1, + @_; } #}}} sub template ($;@) { #{{{ -- cgit v1.2.3