]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/allow_TMPL__95__LOOP_in_template_directives.mdwn
(no commit message)
[ikiwiki.git] / doc / todo / allow_TMPL__95__LOOP_in_template_directives.mdwn
index a8d100551b885a09603d659274919c16aec5aafb..fb8b7095cfe8eaba2e50642a99bea298a7614d15 100644 (file)
@@ -1,6 +1,6 @@
 [[!tag patch]]
 
-[[!templte id="note" text="""
+[[!template id="note" text="""
 Simply copied this from my website
 [[http://www.camco.ie/code/ikiwiki,3.20120202,20120313a/]]
 feel free to reformat / delete"""]]
@@ -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"
        ]]