Roxen.git / server / modules / examples / fnord.pike

version» Context lines:

Roxen.git/server/modules/examples/fnord.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.      // This is a small sample module. It is intended to show a simple example   // of a container.      // This variable is shown in the configinterface as the version of the module. - constant cvs_version = "$Id: fnord.pike,v 1.12 2000/11/24 16:50:37 per Exp $"; + constant cvs_version = "$Id: fnord.pike,v 1.13 2000/11/27 06:17:13 per Exp $";      // Tell Roxen that this module is threadsafe. That is there is no   // request specific data in global variables.   constant thread_safe=1;      // Include and inherit code that is needed in every module.   #include <module.h>   inherit "module";      // Some defines for the translation system
Roxen.git/server/modules/examples/fnord.pike:78:    if (id->prestate->fnord)    return contents;    if (arguments->alt)    return arguments->alt;    return "";   }         // Some constants that are needed to register the module in the RXML parser.   constant module_type = MODULE_TAG; - LocaleString module_name_locale = LOCALE(0,"Fnord!"); + LocaleString module_name_locale = LOCALE(1,"Fnord!");   LocaleString module_doc_locale = -  LOCALE(0,"Adds an extra container tag, &lt;fnord&gt; that's supposed " +  LOCALE(2,"Adds an extra container tag, &lt;fnord&gt; that's supposed "    "to make things invisible unless the \"fnord\" prestate is present."    "<p>This module is here as an example of how to write a "    "very simple RXML-parsing module.</p>" );         // Last, but not least, we want a documentation that can be integrated in the   // online manual. The mapping tagdoc maps from container names to it's description.      TAGDOCUMENTATION;   #ifdef manual   constant tagdoc=(["fnord":#"<desc cont>The fnord container tag hides its "    "contents for the user, unless the fnord prestate is used.</desc>"    "<attr name=alt value=string>An alternate text that should be written "    "in place of the hidden text.</attr>"]);   #endif