Roxen.git
/
server
/
modules
/
scripting
/
piketag.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/scripting/piketag.pike:1:
// This is a roxen module. Copyright © 1996 - 2004, Roxen IS. // // Adds support for inline pike in documents. // // Example: // <pike> // return "Hello world!\n"; // </pike>
-
constant cvs_version = "$Id: piketag.pike,v 2.
37
2004
/
06
/
30
16
:
59
:
20
mast Exp $";
+
constant cvs_version = "$Id: piketag.pike,v 2.
38
2008
/
08
/
15
12
:
33
:
55
mast 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><?pike ... ?></code>, for evaluating Pike code directly in the document.</p>
Roxen.git/server/modules/scripting/piketag.pike:195:
add_constant( "__ps_magic_helpers", Helpers ); add_constant( "__ps_magic_protos", HProtos ); return SPLIT("inherit __ps_magic_helpers;\nimport Roxen;\n",PREFN); } array helper_prototypes( ) { return SPLIT("inherit __ps_magic_protos;\nimport Roxen;\n",PREFN); }
-
private
static
mapping(string:program) program_cache = ([]);
+
private mapping(string:program) program_cache = ([]);
string simple_pi_tag_pike( string tag, mapping m, string s,RequestID id ) { program p; object o; string res; mixed err; id->misc->__added_helpers_in_tree=0; id->misc->cacheable=0;