diff options
author | Joey Hess <joey@kitenet.net> | 2010-04-24 16:11:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-04-24 16:15:47 -0400 |
commit | c2656f08f3a3671b0ba7dc861d53347c7f695ec1 (patch) | |
tree | 9ad3923dc69eadf77ff470a139668c5714994514 /doc/plugins | |
parent | 7099978b7255db504ea17ccd07533e86c2b262fa (diff) |
template() - return params in list context
I forgot CGI::Formbuilder's horrible interface that needs template
parameters instead of a constructed object.
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/write.mdwn | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 9128c7f54..a9ea7db73 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -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. |