发明名称 Adding directives for JavaScript files directly into source code in a multi-tenant database environment
摘要 In a method, system, and computer-readable medium having instructions for adding directives for 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 within the source file, metadata is associated with the directive during preprocessing, metadata associated is retrieved with a preprocessed directive, a request to access metadata associated with a preprocessed directive in the source file is received and the preprocessed directive is the directive from the source file, and at least a portion of markup language is generated for a web page in accordance with metadata associated with the preprocessed directive in response to the request.
申请公布号 US9262138(B2) 申请公布日期 2016.02.16
申请号 US201112985303 申请日期 2011.01.05
申请人 salesforce.com, inc. 发明人 Mooney James
分类号 G06F9/44;G06F9/45;G06F9/455 主分类号 G06F9/44
代理机构 Ingrassia Fisher & Lorenz, P.C. 代理人 Ingrassia Fisher & Lorenz, P.C.
主权项 1. A method, comprising: receiving, at a preprocessor, a source file for preprocessing, wherein the source file is written in a client-side scripting language; parsing, at the preprocessor, the source file; identifying, at the preprocessor, a directive within the source file; associating, at the preprocessor, metadata with the directive during the preprocessing such that the directive is a preprocessed directive, 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 source file in the client-side scripting language for generating at least a portion of markup language for a web page to be served to a client device using a webserver; retrieving, during the preprocessing, only the metadata associated with the preprocessed directive in the source file from a database system such that the entire source file is not retrieved; storing, during the preprocessing, the metadata associated with the preprocessed directive in a hash table; receiving a request to access metadata associated with the preprocessed directive in the source file from the hash table; and generating the at least the portion of markup language for the web page to be served to the client device in accordance with the metadata associated with the preprocessed directive in response to the request.
地址 San Francisco CA US