Roxen.git
/
server
/
modules
/
tags
/
indirect_href.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/tags/indirect_href.pike:1:
// This is a roxen module. Copyright © 1996 - 2000, Roxen IS. // // This module makes it possible to write symbolic names instead of // absoulte hrefs. // // made by Mattias Wingstedt
-
constant cvs_version = "$Id: indirect_href.pike,v 1.
16
2000/04/
06
06
:
37
:
00
wing
Exp $";
+
constant cvs_version = "$Id: indirect_href.pike,v 1.
17
2000/04/
14
22
:
13
:
23
kuntri
Exp $";
constant thread_safe=1; #include <module.h> inherit "module"; inherit "roxenlib"; mapping hrefs; string tagname; void create()
Roxen.git/server/modules/tags/indirect_href.pike:74:
m_delete(m, "random"); } return make_container("a",m,q); } mapping query_simpletag_callers() { return ([ tagname : ({ 0, newa }) ]); }
+
TAGDOCUMENTATION;
+
#ifdef manual
+
constant tagdoc=([
+
"ai":#"<desc><short>
+
Makes it possible to use a database of links.</short> Each link is referred
+
to by a symbolic name instead of the URL.
+
+
<p>The database is updated through the configuration interface. The
+
tag is available through the <module>Indirect href</module>
+
module.</p></desc>
+
+
<attr name='name' value='string' required>
+
Which link to fetch from the database. There is a special case,
+
<att>name='random'</att> that will choose a random link from the
+
database.
+
+
<ex>
+
<ai name='roxen'>Roxen WebServer</ai>
+
</ex>
+
</attr>",
+
]);
+
#endif