SourceForge.net Logo
May 18, 2006
© GPL
 
ProWikiCenter
Command /
Action Interweb

 
Difference (last change) (Author, normal page display)

Changed: 7,8c7,16


FolderCommands
=== Programming example ===

The implementation of ActionInterweb lends itself as a first example of ProWiki programming. It's implemented by:

[[code]
$ActionHash{interweb}=\&ActionInterWeb;
sub ActionInterWeb {
ShowFile("$GlobalDir/interweb.txt");
}
]

Added: 9a18,21
The ActionHash connects the action name with the function that responds to it. Displaying the file is one command. That's all.



FolderCommands FolderProgramming FolderProgrammingExamples

ActionInterweb shows the content of the global InterWebFile which contains the InterWeb abbreviations.

Syntax and example:

Programming example

The implementation of ActionInterweb lends itself as a first example of ProWiki programming. It's implemented by:

$ActionHash{interweb}=\&ActionInterWeb;
sub ActionInterWeb {
  ShowFile("$GlobalDir/interweb.txt");
}

The ActionHash connects the action name with the function that responds to it. Displaying the file is one command. That's all.


FolderCommands FolderProgramming FolderProgrammingExamples