Socialtext::WikiObject::Factory3pm
Create an approprate wikiobject from magic tags
Usage
# Set a magic tag to define WikiObject subclass$rester->put_page($page_name, $page_text);$rester->put_pagetag($page_name, '.wikiobject=YAML');# Use the factory to create the appropriate classmy $wo = Socialtext::WikiObject::Factory->new(rester => $rester,page => $page_name,);isa_ok $wo, 'Socialtext::WikiObject::YAML';
Overview
Socialtext::WikiObject::Factory reads magic tags on a page, and then creates a WikiObject of the appropriate class, as defined in the magic tag.
Functions
new( %opts )
Create a new wiki object. Options:
- rester
-
Users must provide a Socialtext::Resting object setup to use the desired workspace and server.
- page
-
The page to load. Mandatory.
Copyright & license
Copyright 2007 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.
Releases
Unchanged in 2 releases since Debian 6.0 (Squeeze).