]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/write.mdwn
template() - return params in list context
[ikiwiki.git] / doc / plugins / write.mdwn
index 9128c7f5453bd14b679e37ea31fdd14510a3b58b..a9ea7db73c2864f406aafbc07aa4f665a9a2f44f 100644 (file)
@@ -701,9 +701,11 @@ the entire wiki build and make the wiki unusable.
 
 ### `template($;@)`
 
-Creates and returns a [[!cpan HTML::Template]] object. The first parameter
-is the name of the template file. The optional remaining parameters are
-passed to `HTML::Template->new`.
+Creates and returns a [[!cpan HTML::Template]] object. (In a list context,
+returns the parameters needed to construct the obhect.) 
+
+The first parameter is the name of the template file. The optional remaining
+parameters are passed to `HTML::Template->new`.
 
 Normally, the template file is first looked for in the templates/ subdirectory
 of the srcdir. Failing that, it is looked for in the templatedir.