X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/bf056a7ef4d76f30eb78a7adb4cea576d5969eea..4fee7097cd4c2ddb600640eb9266ea5f561a8fa2:/doc/todo/allow_TMPL__95__LOOP_in_template_directives.mdwn diff --git a/doc/todo/allow_TMPL__95__LOOP_in_template_directives.mdwn b/doc/todo/allow_TMPL__95__LOOP_in_template_directives.mdwn index 1d324e2a6..fb8b7095c 100644 --- a/doc/todo/allow_TMPL__95__LOOP_in_template_directives.mdwn +++ b/doc/todo/allow_TMPL__95__LOOP_in_template_directives.mdwn @@ -27,6 +27,8 @@ head-aches. Anyway it didn't make sense to post the patch since everything's changed now. """]] +NB: this *should* be 100% backwards compatible. + # `lib/perl5/IkiWiki/Plugin/template.pm` [[!format perl """ @@ -190,7 +192,7 @@ everything's changed now. my $page = $params{page}->[$#{$params{page}}] ; my $destpage = $params{destpage}->[$#{$params{destpage}}] ; # ... and an essential one for the production pass - $params{basename} = IkiWiki::basename($page) ; + $params{basename} = [ IkiWiki::basename($page) ] ; # load the template my $template ; @@ -254,5 +256,5 @@ everything's changed now. data0="cell0:0" data1="cell0:1" data0="cell1:0" - data0="cell1:1" + data1="cell1:1" ]]