diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-05 03:21:14 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-08-05 03:21:14 +0000 |
commit | 7a05087f475e897560c34a614108dae50ba05c62 (patch) | |
tree | 8fd276ca34b3a2ca3d2363454cc90de5856f4a83 | |
parent | a41abc80ac6e4cb8bd146fe157d53bb6576b9426 (diff) |
* 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.
-rw-r--r-- | IkiWiki.pm | 4 | ||||
-rw-r--r-- | debian/changelog | 5 |
2 files changed, 7 insertions, 2 deletions
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 ($;@) { #{{{ diff --git a/debian/changelog b/debian/changelog index a66ba60f7..2f0258868 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 |