summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-11-02 13:11:00 +0100
committerintrigeri <intrigeri@boum.org>2008-11-02 13:11:00 +0100
commit77136538788350ad2decaa445704ba5738074736 (patch)
treeacb6ea4f00bb43e78a829b1d84a42384c7f37f50 /plugins
parentfadb26bc1507f7fc2caaa873ad32c12f75c378aa (diff)
parentc2684b94b27c12b5e39bfbb026163b62842a9908 (diff)
Merge commit 'origin/master' into prv/po
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/externaldemo11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/externaldemo b/plugins/externaldemo
index fa93e672d..be7aba8b9 100755
--- a/plugins/externaldemo
+++ b/plugins/externaldemo
@@ -101,16 +101,15 @@ sub import {
# stage of ikiwiki.
rpc_call("hook", type => "preprocess", id => "externaldemo", call => "preprocess");
- # Here's an example of how to inject an arbitrary function into
- # ikiwiki. Ikiwiki will be able to call bob() just like any other
- # function. Note use of automatic memoization.
- rpc_call("inject", name => "IkiWiki::bob", call => "bob",
- memoize => 1);
-
# Here's an exmaple of how to access values in %IkiWiki::config.
print STDERR "url is set to: ".
rpc_call("getvar", "config", "url")."\n";
+ # Here's an example of how to inject an arbitrary function into
+ # ikiwiki. Note use of automatic memoization.
+ rpc_call("inject", name => "IkiWiki::bob",
+ call => "formattime", memoize => 1);
+
print STDERR "externaldemo plugin successfully imported\n";
}