]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/tmplvars_plugin.mdwn
Merge branch 'master' into po
[ikiwiki.git] / doc / todo / tmplvars_plugin.mdwn
index f7d06a5793b64ed42608c4221a4a58002ef31d47..644cf23aaffbc42ef5d8cd4abada1fbacd712cd3 100644 (file)
@@ -11,12 +11,12 @@ A simple plugin to allow per-page customization of a template by passing paramat
 
     my %tmplvars;
 
-    sub import { #{{{
+    sub import {
            hook(type => "preprocess", id => "tmplvars", call => \&preprocess);
            hook(type => "pagetemplate", id => "tmplvars", call => \&pagetemplate);
-    } # }}}
+    }
 
-    sub preprocess (@) { #{{{
+    sub preprocess (@) {
            my %params=@_;
 
            if ($params{page} eq $params{destpage}) {
@@ -34,9 +34,9 @@ A simple plugin to allow per-page customization of a template by passing paramat
                    }
            }
     
-    } # }}}
+    }
     
-    sub pagetemplate (@) { #{{{
+    sub pagetemplate (@) {
             my %params=@_;
             my $template = $params{template};
 
@@ -47,6 +47,6 @@ A simple plugin to allow per-page customization of a template by passing paramat
             }
 
             return undef;
-    } # }}}
+    }
 
     1