f41b98 | 2009-05-07 | Martin Stjernholm | |
|
d4e974 | 2000-02-24 | Martin Nilsson | |
|
9c20b9 | 1996-11-20 | Per Hedbor | |
|
327252 | 1999-12-14 | Martin Nilsson | |
|
f41b98 | 2009-05-07 | Martin Stjernholm | | constant cvs_version = "$Id: fnord.pike,v 1.18 2009/05/07 14:15:54 mast 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 | |
|
79ca87 | 2000-11-24 | Per Hedbor | |
#define LOCALE(X,Y) _DEF_LOCALE("mod_fnord",X,Y)
|
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 | |
|
b3281f | 2000-09-10 | Martin Nilsson | | constant module_type = MODULE_TAG;
|
f0d694 | 2001-01-29 | Per Hedbor | | LocaleString module_name = LOCALE(1,"Fnord!");
LocaleString module_doc =
|
de9ca8 | 2000-11-27 | Per Hedbor | | LOCALE(2,"Adds an extra container tag, <fnord> that's supposed "
|
79ca87 | 2000-11-24 | Per Hedbor | | "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
|
ce8fb0 | 2001-09-21 | Johan Sundström | | constant tagdoc=(["fnord":#"<desc type='cont'>The fnord container tag hides its "
|
327252 | 1999-12-14 | Martin Nilsson | | "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
|