Roxen.git
/
server
/
modules
/
examples
/
fnord.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/examples/fnord.pike:1:
// This is a small sample module. It is intended to show a simple example // of a container.
-
string cvs_version = "$Id: fnord.pike,v 1.
3
1996
/
12
/
02
04
:
32
:
39
per
Exp $";
+
// This variable is shown in the configinterface as the varion of the module.
+
string cvs_version = "$Id: fnord.pike,v 1.
4
1997
/
08
/
31
03
:
47
:
18
peter
Exp $";
+
+
// Tell Roxen that this module is threadsafe. That is there is no
+
// request specific data in global variables.
+
int thread_safe=1;
+
#include <module.h> inherit "module"; // Documentation: // The purpose of this module is to allow comments in the SPML source // that are invisible to average viewers, but can be seen with the // right magic incantation. Fnord! The special text is rendered in // the "sample" font, if available, which makes it possible for
Roxen.git/server/modules/examples/fnord.pike:83:
"Fnord!", ("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 RXML-parsing module."), 0, 1 }); } // This is nessesary functions for all MODULE_PARSER modules.
-
-
mapping query_tag_callers() { return ([]); }
+
mapping query_container_callers() { return (["fnord":tag_fnord,]); }