diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-03-15 14:19:49 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-15 14:19:49 -0400 |
commit | ba480baa9ec9e2d5d04c6eb06fd3ab4dafd60794 (patch) | |
tree | e0d0beb88fc3a25c3ffb279aee6ac7063c76dd83 /doc/plugins/write | |
parent | 5a7a89ffc59d008a6dd6586d26ff1a1fbb3bc51f (diff) | |
download | ikiwiki-ba480baa9ec9e2d5d04c6eb06fd3ab4dafd60794.tar ikiwiki-ba480baa9ec9e2d5d04c6eb06fd3ab4dafd60794.tar.gz |
* external: Add getargv and setargv methods to allow access to ikiwiki's
@ARGV.
Diffstat (limited to 'doc/plugins/write')
-rw-r--r-- | doc/plugins/write/external.mdwn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/plugins/write/external.mdwn b/doc/plugins/write/external.mdwn index fd343bda6..2ee841e61 100644 --- a/doc/plugins/write/external.mdwn +++ b/doc/plugins/write/external.mdwn @@ -53,6 +53,9 @@ it, external plugins can use the `getstate` and `setstate` RPCs. To access stored state, call `getstate("page", "id", "key")`, and to store state, call `setstate("page", "id", "key", "value")`. +To access ikiwiki's ARGV, call `getargv()`. To change its ARGV, call +`setargv(value)`. + ## Notes on function parameters The [[plugin_interface_documentation|write]] talks about functions that take @@ -99,9 +102,6 @@ with functions that take or return such references. That means you can't FormBuilder perl objects), or use it to call `template()` (which returns a perl HTML::Template object). -Also. the `getopt` hook doesn't work, as ARGV is not available to the external -plugin. - ## Performance issues Since each external plugin is a separate process, when ikiwiki is |