Socialtext::EditPage - Edit a wiki page using your favourite EDITOR.
Fetch a page, edit it, and then post it.
use Socialtext::EditPage; # The rester is set with the server and workspace my $rester = Socialtext::Resting->new(%opts); my $s = Socialtext::EditPage->new(rester => $rester); $s->edit_page('Snakes on a Plane');
Arguments:
Users must provide a Socialtext::Resting object setup to use the desired workspace and server.
If true, include wafls will be inlined into the page as extraclude blocks.
include
edit_page( %opts )
This method will fetch the page content, and then run $EDITOR on the file. After the file has been edited, it will be put back on the wiki server.
The name of the page you wish to edit.
If supplied, callback will be called after the page has been edited. This function will be passed the edited content, and should return the content to be put onto the server.
If supplied, callback will be called after the page has been edit. This function should return the edit summary text for this edit, if desired.
If supplied, these tags will be applied to the page after it is updated.
If supplied, the page will be saved to the given file instead of edited. The page will not be uploaded to the server.
If specified, this page will be used as the template for a new page.
edit_last_page( %opts )
This method will retrieve a last of all pages tagged with the supplied tag, and then open the latest one for edit.
Arguments are passed through to edit_page(), accept for:
The name of the tag you wish to edit.
Luke Closs, <luke.closs at socialtext.com>
<luke.closs at socialtext.com>
Please report any bugs or feature requests to bug-socialtext-editpage at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Socialtext-Resting-Utils. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-socialtext-editpage at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Socialtext::EditPage
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Socialtext-Resting-Utils
CPAN Ratings
http://cpanratings.perl.org/d/Socialtext-Resting-Utils
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Socialtext-Resting-Utils
Search CPAN
http://search.cpan.org/dist/Socialtext-Resting-Utils
Copyright 2006 Luke Closs, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Socialtext::Resting::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Socialtext::Resting::Utils
CPAN shell
perl -MCPAN -e shell install Socialtext::Resting::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.