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 /IkiWiki/Plugin | |
parent | 5a7a89ffc59d008a6dd6586d26ff1a1fbb3bc51f (diff) |
* external: Add getargv and setargv methods to allow access to ikiwiki's
@ARGV.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/external.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/external.pm b/IkiWiki/Plugin/external.pm index 2650a8cd1..300dee7ed 100644 --- a/IkiWiki/Plugin/external.pm +++ b/IkiWiki/Plugin/external.pm @@ -153,6 +153,18 @@ sub setstate ($$$$;@) { #{{{ return $IkiWiki::pagestate{$page}{$id}{$key}=@_; } #}}} +sub getargv ($) { #{{{ + my $plugin=shift; + + return @ARGV; +} #}}} + +sub setargv ($@) { #{{{ + my $plugin=shift; + + @ARGV=@_; +} #}}} + sub inject ($@) { #{{{ # Bind a given perl function name to a particular RPC request. my $plugin=shift; |