Mercurial > hg > nginx-site
diff xml/en/docs/http/ngx_http_js_module.xml @ 1844:f56626ce9c40
Changed JavaScript to nginScript.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 01 Dec 2016 14:41:04 +0300 |
parents | 15632fc2d548 |
children | bfac366fa1e4 |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_js_module.xml Mon Nov 28 21:29:02 2016 +0300 +++ b/xml/en/docs/http/ngx_http_js_module.xml Thu Dec 01 14:41:04 2016 +0300 @@ -9,24 +9,26 @@ <module name="Module ngx_http_js_module" link="/en/docs/http/ngx_http_js_module.html" lang="en" - rev="1"> + rev="2"> <section id="summary"> <para> The <literal>ngx_http_js_module</literal> module is used to implement -location and variable handlers in JavaScript. +location and variable handlers +in nginScript — +a subset of the JavaScript language. </para> <para> This module is not built by default, it should be compiled with -nginx JavaScript module using the +the nginScript module using the <literal>--add_module</literal> configuration parameter: <example> ./configure --add-module=<value>path-to-njs</value>/nginx </example> The <link url="http://hg.nginx.org/njs">repository</link> -with nginx JavaScript module can be cloned with the following command +with the nginScript module can be cloned with the following command (requires <link url="https://www.mercurial-scm.org">Mercurial</link> client): <example> hg clone http://hg.nginx.org/njs @@ -133,7 +135,7 @@ <context>location</context> <para> -Specifies a file that implements location and variable handlers in JavaScript. +Specifies a file that implements location and variable handlers in nginScript. </para> </directive> @@ -146,7 +148,7 @@ <context>limit_except</context> <para> -Sets a JavaScript function as a location content handler. +Sets an nginScript function as a location content handler. </para> </directive> @@ -161,7 +163,7 @@ <context>location</context> <para> -Sets a JavaScript function for the specified variable. +Sets an nginScript function for the specified variable. </para> </directive> @@ -171,7 +173,7 @@ <section id="arguments" name="Request and Response Arguments"> <para> -Each HTTP JavaScript handler receives two arguments, request and response. +Each HTTP nginScript handler receives two arguments, request and response. </para> <para>