Roxen.git/
server/
modules/
examples/
newstyle_fnord.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2002-07-10
2002-07-10 15:38:24 by Martin Nilsson <mani@lysator.liu.se>
713915ede40e839f99fef0001da776bba53549e9 (
25
lines) (+
8
/-
17
)
[
Show
|
Annotate
]
Branch:
Aphoto_2.0_beta3
Removed localization.
Rev: server/modules/examples/newstyle_fnord.pike:1.14
8:
// 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.
13
2001
/
09
/
21
15:
58
:
09
jhs
Exp $";
+
constant cvs_version = "$Id: newstyle_fnord.pike,v 1.
14
2002
/
07
/
10
15:
38
:
24
nilsson
Exp $";
// Tell Roxen that this module is threadsafe. constant thread_safe=1;
16:
// Inherit code that is needed in every module. inherit "module";
-
-
// moduke.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)
-
// end of the locale related stuff
-
-
+
// Define the fnord tag class. It must begin with "Tag". class TagFnord { inherit RXML.Tag;
73:
// Some constants to register the module in the RXML parser. constant module_type = MODULE_TAG;
-
LocaleString
module_name =
LOCALE(3,
"Newstyle Fnord!"
)
;
-
LocaleString
module_doc =
-
LOCALE
(
4,
"Adds an extra container tag, <fnord> that's supposed "
+
constant
module_name = "Newstyle Fnord!";
+
constant
module_doc =
+
("Adds an extra container tag, <fnord> 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 newstyle RXML-parsing module.</p>");