Roxen.git / server / modules / js-support / javascript_support.pike

version» Context lines:

Roxen.git/server/modules/js-support/javascript_support.pike:1:   // This is a roxen module. Copyright © 1999 - 2009, Roxen IS.    - constant cvs_version = "$Id: javascript_support.pike,v 1.74 2011/08/18 17:27:13 mast Exp $"; + constant cvs_version = "$Id$";      #include <module.h>   #include <request_trace.h>   inherit "module";      #define INT_TAG "_js_quote"      constant module_type = MODULE_PARSER|MODULE_FILTER|MODULE_PROVIDER;   constant module_name = "JavaScript Support: Tags";   constant module_doc = ("This module provides some tags to support "
Roxen.git/server/modules/js-support/javascript_support.pike:341:   }      class TagJSInclude {    inherit RXML.Tag;    constant name = "js-include";       class Frame {    inherit RXML.Frame;       array do_return(RequestID id) { +  string src = "/" + roxen->plib->get_prestate_version() + +  query_absolute_internal_location(id) + args->file;    result =    "<script charset=\"iso-8859-1\" type=\"text/javascript\" "    "language=\"javascript\" " +    (args->defer ? "defer='defer' " : "") + -  "src=\"" + query_absolute_internal_location(id) + args->file + "\">" +  "src=\"" + src + "\">"    "</script>";    return 0;    }    }   }      class TagJSInsert {    inherit RXML.Tag;    constant name = "js-insert";