Документ взят из кэша поисковой машины. Адрес оригинального документа : http://dualopt1.cmm.msu.ru/bin/rdiff/TWiki/TWikiPlugins?rev1=11&rev2=10
Дата изменения: Unknown
Дата индексирования: Fri Feb 28 22:11:44 2014
Кодировка:
%TOPICTITLE% (10 vs. 11) - TWiki
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs...
View   r11  >  r10  ...
TWikiPlugins 11 - 2001-09-02 - AndreaSterbini
Line: 1 to 1
 
On this page:

TWiki Plugins

Line: 117 to 117
 
  • All modules require a $VERSION='0.000' variable, beginning at 1.000.
Changed:
<
<
  • The initPlugin handler checks all dependencies and returns TRUE if the initialization is OK or FALSE if something went wrong.
>
>
  • The initPlugin handler should check all dependencies and return TRUE if the initialization is OK or FALSE if something went wrong.
 
    • The Plugin initialization code does not register a Plugin that returns FALSE (or that has no initPlugin handler).

Line: 140 to 140
 
  • a documentation topic, ex: YourPlugin.txt

The Perl module can be a block of code that connects with TWiki alone, or it can include other elements, like other Perl modules (including other Plugins), graphics, TWiki templates, external applications (ex: a Java applet), or just about anything else it can call.

Added:
>
>
In particular, files that should be web-accessible (graphics, Java applets ...) are best placed as attachments of the YourPlugin topic. Other needed Perl code is best placed in a lib/TWiki/Plugins/YourPlugin/ directory.
  The Plugin API handles the details of connecting your Perl module with main TWiki code. When you're familiar with the Plugin API, you're ready to develop Plugins.

Revision 11r11 - 2001-09-02 - 08:34:34 - AndreaSterbini
Revision 10r10 - 2001-09-02 - 01:11:03 - MikeMannix
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TWikiPlugins
Syndicate this site RSSATOM