]> sipb.mit.edu Git - ikiwiki.git/commitdiff
* Turn on HTML::Template loop_context_vars; not actually used in stock
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 5 Aug 2006 03:21:14 +0000 (03:21 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 5 Aug 2006 03:21:14 +0000 (03:21 +0000)
  templates but can be useful for things like making comma-delimited lists
  of tags or what have you.

IkiWiki.pm
debian/changelog

index 5bb8ea1c9a45d21925a1e72b4a65a38b92ca8e4f..0907df6a116eb7eecb5d53b479fd38bec77e7626 100644 (file)
@@ -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 ($;@) { #{{{
index a66ba60f70e15cb1a381d64a30e03be904d86b33..2f0258868a1a8671cb0f95ed27c3958c53bf38af 100644 (file)
@@ -3,8 +3,11 @@ ikiwiki (1.17) UNRELEASED; urgency=low
   * Disable tidy generator tag.
   * Move tidy back to sanitize hook, found out how to only show body.
   * Turn off tidy indentation too.
+  * 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.
 
- -- Joey Hess <joeyh@debian.org>  Fri,  4 Aug 2006 22:29:31 -0400
+ -- Joey Hess <joeyh@debian.org>  Fri,  4 Aug 2006 23:04:12 -0400
 
 ikiwiki (1.16) unstable; urgency=low