Roxen.git / server / modules / scripting / piketag.pike

version» Context lines:

Roxen.git/server/modules/scripting/piketag.pike:1: - // This is a roxen module. Copyright © 1996 - 2001, Roxen IS. + // This is a ChiliMoon module. Copyright © 1996 - 2001, Roxen IS.   //   // Adds support for inline pike in documents.   //   // Example:   // <pike>   // return "Hello world!\n";   // </pike>    - constant cvs_version = "$Id: piketag.pike,v 2.39 2004/06/04 08:29:25 _cvs_stephen Exp $"; + constant cvs_version = "$Id: piketag.pike,v 2.40 2004/06/05 15:19:48 _cvs_dirix Exp $";   constant thread_safe=1;      inherit "module";   #include <module.h>      constant module_type = MODULE_TAG;   constant module_name = "Scripting: Pike tag";   constant module_doc = #"   <p>This module adds a processing instruction tag, <code>&lt;?pike ...   ?&gt;</code>, for evaluating Pike code directly in the document.</p>
Roxen.git/server/modules/scripting/piketag.pike:63:    <dd>An <code>#include</code> preprocessor directive includes the    specified file.</dd>       <dt><code>#inherit \"...\"</code></dt>    <dd>An <code>#inherit</code> preprocessor directive puts a    corresponding inherit declaration in the class that's generated to    contain the Pike code in the tag.</dd>   </dl>      <p>When files are included or inherited, they will be read from the - virtual filesystem in Roxen, relative to the location during whose + virtual filesystem in ChiliMoon, relative to the location during whose   parsing the pike tag was encountered. Entities and scopes are   available as variables named like the entity/scope itself. The   RequestID object is available as <code>id</code>.</p>      <p>Note that every RXML fragment is parsed by itself, so you can't   have unmatched RXML tags in them. E.g. the following does not work:</p>      <p><pre>&lt;?pike    //X &lt;gtext&gt;    write (\"Foo\");
Roxen.git/server/modules/scripting/piketag.pike:599: Inside #if defined(manual)
   RXML parser and then written to the output buffer.</p>   </attr>      <attr name='#include \"...\"'><p>    An #include preprocessor directive includes the specified file.</p>   </attr>      <attr name='#inherit \"...\"'><p>    An #inherit preprocessor directive puts a corresponding inherit    declaration in the class that's generated to contain the Pike code in -  the tag, i.e. it inherits a specified file from the Roxen filesystem.</p> +  the tag, i.e. it inherits a specified file from the ChiliMoon filesystem.</p>       <ex-box><?pike    //O <pre>    int first = 1;    for( var.counter=100; var.counter>1; var.counter--,first=0 )    {    if( !first )    {    //X &var.counter; bottles of beer on the wall    //O