changeset 1844:f56626ce9c40

Changed JavaScript to nginScript.
author Yaroslav Zhuravlev <yar@nginx.com>
date Thu, 01 Dec 2016 14:41:04 +0300
parents 3492eb9b8138
children c0f9510ea9c6
files xml/en/docs/http/ngx_http_js_module.xml xml/en/docs/stream/ngx_stream_js_module.xml xml/ru/docs/http/ngx_http_js_module.xml xml/ru/docs/stream/ngx_stream_js_module.xml
diffstat 4 files changed, 42 insertions(+), 36 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_js_module.xml
+++ b/xml/en/docs/http/ngx_http_js_module.xml
@@ -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 @@ function baz(req, res) {
 <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 @@ Specifies a file that implements locatio
 <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 @@ Sets a JavaScript function as a location
 <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 @@ Sets a JavaScript function for the speci
 
 <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>
--- a/xml/en/docs/stream/ngx_stream_js_module.xml
+++ b/xml/en/docs/stream/ngx_stream_js_module.xml
@@ -9,24 +9,25 @@
 <module name="Module ngx_stream_js_module"
         link="/en/docs/stream/ngx_stream_js_module.html"
         lang="en"
-        rev="1">
+        rev="2">
 
 <section id="summary">
 
 <para>
-The <literal>ngx_stream_js_module</literal> module is used to
-implement handlers in JavaScript.
+The <literal>ngx_stream_js_module</literal> module is used to implement
+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
@@ -177,7 +178,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Sets a JavaScript function which will be called at the
+Sets an nginScript function which will be called at the
 <link doc="stream_processing.xml" id="access_phase">access</link> phase.
 </para>
 
@@ -204,7 +205,7 @@ Sets a data filter.
 <context>server</context>
 
 <para>
-Specifies a file that implements server and variable handlers in JavaScript.
+Specifies a file that implements server and variable handlers in nginScript.
 </para>
 
 </directive>
@@ -217,7 +218,7 @@ Specifies a file that implements server 
 <context>server</context>
 
 <para>
-Sets a JavaScript function which will be called at the
+Sets an nginScript function which will be called at the
 <link doc="stream_processing.xml" id="preread_phase">preread</link> phase.
 </para>
 
@@ -232,7 +233,7 @@ Sets a JavaScript function which will be
 <context>server</context>
 
 <para>
-Sets a JavaScript function for the specified variable.
+Sets an nginScript function for the specified variable.
 </para>
 
 </directive>
@@ -242,7 +243,7 @@ Sets a JavaScript function for the speci
 
 <section id="properties" name="Session Object Properties">
 <para>
-Each stream JavaScript handler receives one argument, a stream session object.
+Each stream nginScript handler receives one argument, a stream session object.
 </para>
 
 <para>
--- a/xml/ru/docs/http/ngx_http_js_module.xml
+++ b/xml/ru/docs/http/ngx_http_js_module.xml
@@ -9,24 +9,26 @@
 <module name="Модуль ngx_http_js_module"
         link="/ru/docs/http/ngx_http_js_module.html"
         lang="ru"
-        rev="1">
+        rev="2">
 
 <section id="summary">
 
 <para>
-Модуль <literal>ngx_http_js_module</literal> позволяет задавать обработчики
-location и переменных на JavaScript.
+Модуль <literal>ngx_http_js_module</literal> позволяет задавать
+обработчики location и переменных
+на nginScript —
+подмножестве языка JavaScript.
 </para>
 
 <para>
 По умолчанию этот модуль не собирается, его необходимо собрать с
-модулем nginx JavaScript с помощью конфигурационного параметра
+модулем nginScript с помощью конфигурационного параметра
 <literal>--add_module</literal>:
 <example>
 ./configure --add-module=<value>path-to-njs</value>/nginx
 </example>
 <link url="http://hg.nginx.org/njs">Репозиторий</link>
-модуля nginx JavaScript можно клонировать следующей командой
+модуля nginScript можно клонировать следующей командой
 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>):
 <example>
 hg clone http://hg.nginx.org/njs
@@ -134,7 +136,7 @@ function baz(req, res) {
 
 <para>
 Задаёт файл, позволяющий задавать обработчики location и переменных
-на JavaScript.
+на nginScript.
 </para>
 
 </directive>
@@ -147,7 +149,7 @@ function baz(req, res) {
 <context>limit_except</context>
 
 <para>
-Задаёт функцию JavaScript в качестве обработчика содержимого location.
+Задаёт функцию nginScript в качестве обработчика содержимого location.
 </para>
 
 </directive>
@@ -162,7 +164,7 @@ function baz(req, res) {
 <context>location</context>
 
 <para>
-Задаёт функцию JavaScript для указанной переменной.
+Задаёт функцию nginScript для указанной переменной.
 </para>
 
 </directive>
@@ -172,7 +174,7 @@ function baz(req, res) {
 
 <section id="arguments" name="Аргументы запроса и ответа">
 <para>
-Каждый HTTP-обработчик JavaScript получает два аргумента: запрос и ответ.
+Каждый HTTP-обработчик nginScript получает два аргумента: запрос и ответ.
 </para>
 
 <para>
--- a/xml/ru/docs/stream/ngx_stream_js_module.xml
+++ b/xml/ru/docs/stream/ngx_stream_js_module.xml
@@ -9,24 +9,25 @@
 <module name="Модуль ngx_stream_js_module"
         link="/ru/docs/stream/ngx_stream_js_module.html"
         lang="ru"
-        rev="1">
+        rev="2">
 
 <section id="summary">
 
 <para>
 Модуль <literal>ngx_stream_js_module</literal> позволяет задавать
-обработчики на JavaScript.
+обработчики на nginScript —
+подмножестве языка JavaScript.
 </para>
 
 <para>
 По умолчанию этот модуль не собирается, его необходимо собрать с
-модулем nginx JavaScript с помощью конфигурационного параметра
+модулем nginScript с помощью конфигурационного параметра
 <literal>--add_module</literal>:
 <example>
 ./configure --add-module=<value>path-to-njs</value>/nginx
 </example>
 <link url="http://hg.nginx.org/njs">Репозиторий</link>
-модуля nginx JavaScript можно клонировать следующей командой
+модуля nginScript можно клонировать следующей командой
 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>):
 <example>
 hg clone http://hg.nginx.org/njs
@@ -177,7 +178,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Задаёт функцию JavaScript, которая будет вызываться в
+Задаёт функцию nginScript, которая будет вызываться в
 <link doc="stream_processing.xml" id="access_phase">access</link>-фазе.
 </para>
 
@@ -205,7 +206,7 @@ function xyz(s) {
 
 <para>
 Задаёт файл, который позволяет
-задавать обработчики server и переменных на JavaScript.
+задавать обработчики server и переменных на nginScript.
 </para>
 
 </directive>
@@ -218,7 +219,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Задаёт функцию JavaScript, которая будет вызываться в
+Задаёт функцию nginScript, которая будет вызываться в
 <link doc="stream_processing.xml" id="preread_phase">preread</link>-фазе.
 </para>
 
@@ -233,7 +234,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Задаёт функцию JavaScript для указанной переменной.
+Задаёт функцию nginScript для указанной переменной.
 </para>
 
 </directive>
@@ -243,7 +244,7 @@ function xyz(s) {
 
 <section id="properties" name="Свойства объекта сессии">
 <para>
-Каждый stream-обработчик JavaScript получает один аргумент:
+Каждый stream-обработчик nginScript получает один аргумент:
 объект stream-сессии.
 </para>