Roxen.git / server / modules / tags / indirect_href.pike

version» Context lines:

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      #pragma strict_types    - constant cvs_version = "$Id: indirect_href.pike,v 1.25 2000/11/02 13:10:23 kuntri Exp $"; + constant cvs_version = "$Id: indirect_href.pike,v 1.26 2000/11/09 18:19:13 kuntri Exp $";   constant thread_safe = 1;   #include <module.h>      inherit "module";      void create()   {    defvar( "hrefs", "roxen = http://www.roxen.com\n"    "community = http://community.roxen.com", "Indirect hrefs",    TYPE_TEXT_FIELD, "The URL database with the syntax:<br>\n"
Roxen.git/server/modules/tags/indirect_href.pike:81:    result = Roxen.make_container("a", [mapping(string:string)]args, [string]content);    return 0;    }    }   }      TAGDOCUMENTATION;   #ifdef manual   constant tagdoc=([    "ai":#"<desc cont='cont'><p><short> -  Makes it possible to use a database of links.</short> Each link is referred -  to by a symbolic name instead of the URL. +  Makes it possible to use a database of links.</short> Each link is +  referred to by a symbolic name instead of the URL.</p>       <p>The database is updated through the configuration interface. The    tag is available through the <ref type=module>Indirect href</ref> -  module.</p></p></desc> +  module.</p></desc>    -  <attr name='name' value='string' required> +  <attr name='name' value='string' required='required'><p>    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. +  database.</p> +     <ex><ai name='roxen'>Roxen Platform</ai></ex>    </attr>",    ]);   #endif