d4e974 | 2000-02-24 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
b3281f | 2000-09-10 | Martin Nilsson | | constant cvs_version = "$Id: fnord.pike,v 1.11 2000/09/10 16:42:10 nilsson Exp $";
|
6682b9 | 1997-08-31 | Peter Bortas | |
|
6aae86 | 2000-07-02 | Martin Nilsson | | constant thread_safe=1;
|
6682b9 | 1997-08-31 | Peter Bortas | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | | #include <module.h>
inherit "module";
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
d024df | 2000-03-17 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
d024df | 2000-03-17 | Martin Nilsson | | string simpletag_fnord(string tag_name, mapping arguments, string contents,
|
327252 | 1999-12-14 | Martin Nilsson | | RequestID id )
{
if (id->prestate->fnord)
return contents;
if (arguments->alt)
return arguments->alt;
return "";
|
9c20b9 | 1996-11-20 | Per Hedbor | | }
|
a8124d | 2000-02-12 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
b3281f | 2000-09-10 | Martin Nilsson | | constant module_type = MODULE_TAG;
|
a8124d | 2000-02-12 | Martin Nilsson | | constant module_name = "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 RXML-parsing module.</p>";
|
327252 | 1999-12-14 | Martin Nilsson | |
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
|