]> sipb.mit.edu Git - ikiwiki.git/blobdiff - plugins/externaldemo
web commit by http://madduck.myopenid.com/: close Heisenbug
[ikiwiki.git] / plugins / externaldemo
index 6bbced30ee70cc697e7745a8c478df40ccf81733..1321a4bc52e22c48f317182cc2449a97e522c31d 100755 (executable)
@@ -102,8 +102,9 @@ sub import {
 
        # 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.
-       rpc_call("inject", name => "IkiWiki::bob", call => "bob");
+       # 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: ".