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

version» Context lines:

Roxen.git/server/modules/examples/newstyle_fnord.pike:1: - // This is a roxen module. Copyright © 2000, Roxen IS. + // This is a roxen module. Copyright © 2000 - 2009, Roxen IS.      // This is a small sample module intended to show how a newstyle tag   // is written. Note that this is only a very brief overview and that   // the new parser is still under development and incompatible changes   // might be done in the future.      // See fnord.pike for more information of what this tag does.      // This variable is shown in the configinterface as the version of the module. - constant cvs_version = "$Id: newstyle_fnord.pike,v 1.11 2001/01/29 05:40:31 per Exp $"; + constant cvs_version = "$Id$";      // Tell Roxen that this module is threadsafe.   constant thread_safe=1;      // Inherit code that is needed in every module.   inherit "module";       - // moduke.h must be included to use the LOCALE macro below. + // module.h must be included to use the LOCALE macro below.   #include <module.h>   // Some defines for the translation system   // - //<locale-token project="mod_fnord">LOCALE</locale-token> - #define LOCALE(X,Y) _DEF_LOCALE("mod_fnord",X,Y) + //<locale-token project="mod_newstyle_fnord">LOCALE</locale-token> + #define LOCALE(X,Y) _DEF_LOCALE("mod_newstyle_fnord",X,Y)   // end of the locale related stuff         // Define the fnord tag class. It must begin with "Tag".   class TagFnord {    inherit RXML.Tag;       // This constant tells the parser that the tag should be called "fnord".    constant name = "fnord";   
Roxen.git/server/modules/examples/newstyle_fnord.pike:81:    "very simple newstyle 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.      // Include this is if you use the TAGDOC system.   #include <module.h>      TAGDOCUMENTATION;   #ifdef manual - constant tagdoc=(["fnord":#"<desc cont>The fnord container tag hides its " + 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