Adding directives for versions of javascript files directly into source code in a multi-tenant database environment
First Claim
1. A method, comprising:
- receiving, at a processor, a source file for preprocessing, wherein the source file comprises source code and is written in a client-side scripting language;
parsing, at the processor, the source file;
identifying, at the processor, directive information for a preprocessed directive within the source code of the source file, wherein the directive information comprises data on at least a portion of a client-side scripting language file and a mode;
creating, at the processor, a version of the source file for the mode, wherein the version of the source file comprises the source code from the source file and the at least a portion of the client-side scripting language file;
associating, at the processor, metadata with the preprocessed directive and the version of the source file, wherein the metadata comprises;
information regarding which portions of the source file have been altered since a last preprocessing of the source file has occurred, and at least a portion of the client-side scripting language file for generating at least a portion of markup language for a web page to be served to a client device using a webserver;
storing the metadata in a database;
retrieving, via the webserver from the database, only the metadata associated with the preprocessed directive in the version of the source file such that the entire source file is not retrieved; and
in response to receiving a request for the metadata associated the version of the source file, generating, in accordance with the metadata associated with the preprocessed directive and the version of the source file, at least the portion of the markup language for the web page to be served to the client device.
1 Assignment
0 Petitions
Accused Products
Abstract
In a method, system, and computer-readable medium having instructions for adding directives for versions of JavaScript files directly into source code, a source file for preprocessing is received and the source file is written in a client-side scripting language, the source file is parsed, directive information is identified for a directive within the source file and the directive information comprises data on at least a portion of a client-side scripting language file and a mode, a version of the source file for the mode is created and the version of the source file comprises source code from the source file and the at least a portion of the client-side scripting language file, and metadata is associated with the directive and the version of the source file.
143 Citations
20 Claims
-
1. A method, comprising:
-
receiving, at a processor, a source file for preprocessing, wherein the source file comprises source code and is written in a client-side scripting language; parsing, at the processor, the source file; identifying, at the processor, directive information for a preprocessed directive within the source code of the source file, wherein the directive information comprises data on at least a portion of a client-side scripting language file and a mode; creating, at the processor, a version of the source file for the mode, wherein the version of the source file comprises the source code from the source file and the at least a portion of the client-side scripting language file; associating, at the processor, metadata with the preprocessed directive and the version of the source file, wherein the metadata comprises;
information regarding which portions of the source file have been altered since a last preprocessing of the source file has occurred, and at least a portion of the client-side scripting language file for generating at least a portion of markup language for a web page to be served to a client device using a webserver;storing the metadata in a database; retrieving, via the webserver from the database, only the metadata associated with the preprocessed directive in the version of the source file such that the entire source file is not retrieved; and in response to receiving a request for the metadata associated the version of the source file, generating, in accordance with the metadata associated with the preprocessed directive and the version of the source file, at least the portion of the markup language for the web page to be served to the client device. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A non-transitory computer-readable storage medium having one or more instructions thereon for adding directives for versions of JavaScript files directly into source code, the instructions when executed by one or more processors causing the one or more processors to carry out:
-
receiving, at one of the processors, a source file for preprocessing, wherein the source file comprises source code and is written in a client-side scripting language; parsing, at one of the processors, the source file; identifying, at one of the processors, directive information for a preprocessed directive within the source code of the source file, wherein the directive information comprises data on at least a portion of a client-side scripting language file and a mode; creating, at one of the processors, a version of the source file for the mode, wherein the version of the source file comprises the source code from the source file and the at least a portion of the client-side scripting language file; associating, at one of the processors, metadata with the preprocessed directive and the version of the source file, wherein the metadata comprises;
information regarding which portions of the source file have been altered since a last preprocessing of the source file has occurred, and at least a portion of the client-side scripting language file for generating at least a portion of markup language for a web page to be served to a client device using a webserver;storing, via one of the processors, the metadata in a database; retrieving, via one of the processors that is implemented at the webserver from the database, only the metadata associated with the preprocessed directive in the version of the source file such that the entire source file is not retrieved; and in response to receiving a request for the metadata associated the version of the source file, generating, at one of the processors in accordance with the metadata associated with the preprocessed directive and the version of the source file, at least the portion of the markup language for the web page to be served to the client device. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. A system for adding directives for versions of JavaScript files directly into source code, the system comprising:
-
a first processor; a webserver; a database; and one or more stored sequences of instructions which, when executed by the first processor, cause the first processor to carry out; receiving, at the first processor, a source file for preprocessing, wherein the source file comprises source code and is written in a client-side scripting language; parsing, at the first processor, the source file; identifying, at the first processor, directive information for a preprocessed directive within the source code of the source file, wherein the directive information comprises data on at least a portion of a client-side scripting language file and a mode; creating, at the first processor, a version of the source file for the mode, wherein the version of the source file comprises the source code from the source file and the at least a portion of the client-side scripting language file; associating, at the first processor, metadata with the preprocessed directive and the version of the source file, wherein the metadata comprises;
information regarding which portions of the source file have been altered since a last preprocessing of the source file has occurred, and at least a portion of the client-side scripting language file for generating at least a portion of markup language for a web page to be served to a client device using a webserver;storing the metadata in the database; wherein the webserver is configured to; retrieve, from the database, only the metadata associated with the preprocessed directive in the version of the source file such that the entire source file is not retrieved; and in response to receiving a request for the metadata associated the version of the source file, generate, in accordance with the metadata associated with the preprocessed directive and the version of the source file, at least the portion of the markup language for the web page to be served to the client device. - View Dependent Claims (15, 16, 17, 18, 19, 20)
-
Specification