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 - 2000, Roxen IS.   //   // Adds support for inline pike in documents.   //   // Example:   // <pike>   // return "Hello world!\n";   // </pike>    - constant cvs_version = "$Id: piketag.pike,v 2.29 2001/01/26 18:53:23 mast Exp $"; + constant cvs_version = "$Id: piketag.pike,v 2.30 2001/03/07 13:40:47 kuntri Exp $";   constant thread_safe=1;      inherit "module";   #include <module.h>      constant module_type = MODULE_TAG;   constant module_name = "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:502:    destruct(o);       return res;   }      // --------------------- Documentation -----------------------      TAGDOCUMENTATION;   #ifdef manual   constant tagdoc=([ - "<?pike":#"<desc pi><short hide> + "?pike":#"<desc pi='pi'><p><short hide='hide'>    Pike processing instruction tag.</short>This processing intruction    tag allows for evaluating Pike code directly in the document.</p>       <p>Note: With this tag, users are able to run programs with the same    right as the server. This is a serious security hasard.</p>       <p>When the pike tag returns, the contents of the output buffer is    inserted into the page. It is not reparsed with the RXML parser.</p>       <p>Use entities within the Pike code, scope.variable is handled like
Roxen.git/server/modules/scripting/piketag.pike:525: Inside #if defined(manual)
   <p>Note: It is still possible to use the    <tag>pike</tag>...<tag>/pike</tag> container tag, though it behaves    exactly as it did in Roxen 2.0 and earlier and the functionality    mentioned below does not apply to it. The use of the container tag is    deprecated.</p>       <p>Below is a list of special helper functions and constructs which    are only available within the <tag>?pike ?</tag> tag.</p>   </desc>    - <attr name='write'> + <attr name='write'><p>    write(string fmt, mixed ... args) is a helper function. It formats a    string in the same way as printf and appends it to the output buffer.    If given only one string argument, it's written directly to the -  output buffer without being interpreted as a format specifier. +  output buffer without being interpreted as a format specifier.</p>   </attr>    - <attr name='flush'> + <attr name='flush'><p>    flush() is a helper function. It returns the contents of the output -  buffer and resets it. +  buffer and resets it.</p>   </attr>    - <attr name='rxml'> + <attr name='rxml'><p>    rxml(string rxmlcode) is a helper function. It parses the string with -  the RXML parser. +  the RXML parser.</p>   </attr>       - <attr name='\"//O ...\" or \"/*O ... */\"'> + <attr name='\"//O ...\" or \"/*O ... */\"'><p>    Pike comment with an 'O' (the letter, not the number) as the very    first character treats the rest of the text in the comment as output -  text that's written directly to the output buffer. +  text that's written directly to the output buffer.</p>   </attr>    - <attr name='\"//X ...\" or \"/*X ... */\"'> + <attr name='\"//X ...\" or \"/*X ... */\"'><p>    A Pike comment with an 'X' as the very first character treats the    rest of the text in the comment as RXML code that's executed by the -  RXML parser and then written to the output buffer. +  RXML parser and then written to the output buffer.</p>   </attr>    - <attr name='#include \"...\"'> -  An #include preprocessor directive includes the specified file. + <attr name='#include \"...\"'><p> +  An #include preprocessor directive includes the specified file.</p>   </attr>    - <attr name='#inherit \"...\"'> + <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. +  the tag, i.e. it inherits a specified file from the Roxen filesystem.</p>       <ex type='box'>       <?pike       //O <pre>    int first = 1;    for( var.counter=100; var.counter>1; var.counter--,first=0 )    {    if( !first )