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

version» Context lines:

Roxen.git/server/modules/examples/fnord.pike:77:   {    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; + constant module_type = MODULE_TAG|MODULE_EXPERIMENTAL;   LocaleString module_name = LOCALE(1,"Fnord!");   LocaleString module_doc =    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 type='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