changeset 2128:59a3cc84f507

Renamed nginScript to njs
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 03 Apr 2018 20:23:40 +0300
parents 284598bb7fbb
children 4212f4520070
files xml/en/docs/http/ngx_http_js_module.xml xml/en/docs/njs_about.xml xml/en/docs/stream/ngx_stream_js_module.xml xml/ru/docs/http/ngx_http_js_module.xml xml/ru/docs/njs_about.xml xml/ru/docs/stream/ngx_stream_js_module.xml
diffstat 6 files changed, 50 insertions(+), 50 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,26 +9,26 @@
 <module name="Module ngx_http_js_module"
         link="/en/docs/http/ngx_http_js_module.html"
         lang="en"
-        rev="7">
+        rev="8">
 
 <section id="summary">
 
 <para>
 The <literal>ngx_http_js_module</literal> module is used to implement
 location and variable handlers
-in <link doc="../njs_about.xml">nginScript</link> —
+in <link doc="../njs_about.xml">njs</link> —
 a subset of the JavaScript language.
 </para>
 
 <para>
 This module is not built by default, it should be compiled with
-the nginScript module using the
+the njs 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 the nginScript module can be cloned with the following command
+with the njs 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
@@ -125,7 +125,7 @@ function baz(req, res) {
 <context>http</context>
 
 <para>
-Specifies a file that implements location and variable handlers in nginScript.
+Specifies a file that implements location and variable handlers in njs.
 </para>
 
 </directive>
@@ -138,7 +138,7 @@ Specifies a file that implements locatio
 <context>limit_except</context>
 
 <para>
-Sets an nginScript function as a location content handler.
+Sets an njs function as a location content handler.
 </para>
 
 </directive>
@@ -151,7 +151,7 @@ Sets an nginScript function as a locatio
 <context>http</context>
 
 <para>
-Sets an nginScript function for the specified variable.
+Sets an njs function for the specified variable.
 </para>
 
 </directive>
@@ -161,7 +161,7 @@ Sets an nginScript function for the spec
 
 <section id="arguments" name="Request and Response Arguments">
 <para>
-Each HTTP nginScript handler receives two arguments, request and response.
+Each HTTP njs handler receives two arguments, request and response.
 </para>
 
 <para>
--- a/xml/en/docs/njs_about.xml
+++ b/xml/en/docs/njs_about.xml
@@ -6,19 +6,19 @@
 
 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
 
-<article name="About nginScript"
+<article name="About njs"
         link="/en/docs/njs_about.html"
         lang="en"
-        rev="13">
+        rev="14">
 
 <section id="summary">
 
 <para>
-nginScript is a subset of the JavaScript language that allows
+njs is a subset of the JavaScript language that allows
 implementing location and variable handlers in
 <link doc="http/ngx_http_js_module.xml">http</link> and
 <link doc="stream/ngx_stream_js_module.xml">stream</link>.
-nginScript is created in compliance with
+njs is created in compliance with
 <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link>
 with some
 <link url="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 6</link>
@@ -229,7 +229,7 @@ binary literals (<literal>0b0101</litera
 <section id="install" name="Download and install">
 
 <para>
-nginScript is available in two modules:
+njs is available in two modules:
 <list type="bullet">
 
 <listitem>
@@ -249,12 +249,12 @@ or installed as a Linux package.
 
 <section id="install_package" name="Installing as a Linux package">
 <para>
-For Linux, nginScript modules
+For Linux, njs modules
 <link doc="../linux_packages.xml" id="dynmodules">packages</link> can be used:
 <list type="bullet">
 
 <listitem>
-<literal>nginx-module-njs</literal> — nginScript
+<literal>nginx-module-njs</literal> — njs
 <link doc="ngx_core_module.xml" id="load_module">dynamic</link> modules
 </listitem>
 
@@ -273,7 +273,7 @@ For Linux, nginScript modules
 
 <para>
 The <link url="http://hg.nginx.org/njs">repository</link>
-with nginScript sources can be cloned with the following command:
+with njs sources 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
--- a/xml/en/docs/stream/ngx_stream_js_module.xml
+++ b/xml/en/docs/stream/ngx_stream_js_module.xml
@@ -9,25 +9,25 @@
 <module name="Module ngx_stream_js_module"
         link="/en/docs/stream/ngx_stream_js_module.html"
         lang="en"
-        rev="8">
+        rev="9">
 
 <section id="summary">
 
 <para>
 The <literal>ngx_stream_js_module</literal> module is used to implement
-handlers in <link doc="../njs_about.xml">nginScript</link> —
+handlers in <link doc="../njs_about.xml">njs</link> —
 a subset of the JavaScript language.
 </para>
 
 <para>
 This module is not built by default, it should be compiled with
-the nginScript module using the
+the njs 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 the nginScript module can be cloned with the following command
+with the njs 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
@@ -168,7 +168,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Sets an nginScript function which will be called at the
+Sets an njs function which will be called at the
 <link doc="stream_processing.xml" id="access_phase">access</link> phase.
 </para>
 
@@ -194,7 +194,7 @@ Sets a data filter.
 <context>stream</context>
 
 <para>
-Specifies a file that implements server and variable handlers in nginScript.
+Specifies a file that implements server and variable handlers in njs.
 </para>
 
 </directive>
@@ -207,7 +207,7 @@ Specifies a file that implements server 
 <context>server</context>
 
 <para>
-Sets an nginScript function which will be called at the
+Sets an njs function which will be called at the
 <link doc="stream_processing.xml" id="preread_phase">preread</link> phase.
 </para>
 
@@ -221,7 +221,7 @@ Sets an nginScript function which will b
 <context>stream</context>
 
 <para>
-Sets an nginScript function for the specified variable.
+Sets an njs function for the specified variable.
 </para>
 
 </directive>
@@ -231,7 +231,7 @@ Sets an nginScript function for the spec
 
 <section id="properties" name="Session Object Properties">
 <para>
-Each stream nginScript handler receives one argument, a stream session object.
+Each stream njs 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,26 +9,26 @@
 <module name="Модуль ngx_http_js_module"
         link="/ru/docs/http/ngx_http_js_module.html"
         lang="ru"
-        rev="7">
+        rev="8">
 
 <section id="summary">
 
 <para>
 Модуль <literal>ngx_http_js_module</literal> позволяет задавать
 обработчики location и переменных
-на <link doc="../njs_about.xml">nginScript</link> —
+на <link doc="../njs_about.xml">njs</link> —
 подмножестве языка JavaScript.
 </para>
 
 <para>
 По умолчанию этот модуль не собирается, его необходимо собрать с
-модулем nginScript с помощью конфигурационного параметра
+модулем njs с помощью конфигурационного параметра
 <literal>--add-module</literal>:
 <example>
 ./configure --add-module=<value>path-to-njs</value>/nginx
 </example>
 <link url="http://hg.nginx.org/njs">Репозиторий</link>
-модуля nginScript можно клонировать следующей командой
+модуля njs можно клонировать следующей командой
 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>):
 <example>
 hg clone http://hg.nginx.org/njs
@@ -126,7 +126,7 @@ function baz(req, res) {
 
 <para>
 Задаёт файл, позволяющий задавать обработчики location и переменных
-на nginScript.
+на njs.
 </para>
 
 </directive>
@@ -139,7 +139,7 @@ function baz(req, res) {
 <context>limit_except</context>
 
 <para>
-Задаёт функцию nginScript в качестве обработчика содержимого location.
+Задаёт функцию njs в качестве обработчика содержимого location.
 </para>
 
 </directive>
@@ -152,7 +152,7 @@ function baz(req, res) {
 <context>http</context>
 
 <para>
-Задаёт функцию nginScript для указанной переменной.
+Задаёт функцию njs для указанной переменной.
 </para>
 
 </directive>
@@ -162,7 +162,7 @@ function baz(req, res) {
 
 <section id="arguments" name="Аргументы запроса и ответа">
 <para>
-Каждый HTTP-обработчик nginScript получает два аргумента: запрос и ответ.
+Каждый HTTP-обработчик njs получает два аргумента: запрос и ответ.
 </para>
 
 <para>
--- a/xml/ru/docs/njs_about.xml
+++ b/xml/ru/docs/njs_about.xml
@@ -6,19 +6,19 @@
 
 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
 
-<article name="Информация о nginScript"
+<article name="Информация о njs"
         link="/ru/docs/njs_about.html"
         lang="ru"
-        rev="13">
+        rev="14">
 
 <section id="summary">
 
 <para>
-nginScript - это подмножество языка JavaScript, который позволяет
+njs - это подмножество языка JavaScript, который позволяет
 задавать обработчики location и переменных в
 <link doc="http/ngx_http_js_module.xml">http</link> и
 <link doc="stream/ngx_stream_js_module.xml">stream</link>.
-nginScript совместим с
+njs совместим с
 <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link>
 c некоторыми расширениями
 <link url="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 6</link>.
@@ -228,7 +228,7 @@ labels
 <section id="install" name="Загрузка и установка">
 
 <para>
-nginScript доступен в двух модулях:
+njs доступен в двух модулях:
 <list type="bullet">
 
 <listitem>
@@ -248,14 +248,14 @@ nginScript доступен в двух модулях:
 
 <section id="install_package" name="Установка пакета Linux">
 <para>
-Для установки модулей nginScript на Linux могут быть использованы
+Для установки модулей njs на Linux могут быть использованы
 <link doc="../linux_packages.xml" id="dynmodules">пакеты</link>:
 <list type="bullet">
 
 <listitem>
 <literal>nginx-module-njs</literal> —
 <link doc="ngx_core_module.xml" id="load_module">динамические</link> модули
-nginScript
+njs
 </listitem>
 
 <listitem>
@@ -273,7 +273,7 @@ nginScript
 
 <para>
 <link url="http://hg.nginx.org/njs">Репозиторий</link>
-с исходным кодом nginScript можно клонировать следующей командой:
+с исходным кодом njs можно клонировать следующей командой:
 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>):
 <example>
 hg clone http://hg.nginx.org/njs
--- a/xml/ru/docs/stream/ngx_stream_js_module.xml
+++ b/xml/ru/docs/stream/ngx_stream_js_module.xml
@@ -9,25 +9,25 @@
 <module name="Модуль ngx_stream_js_module"
         link="/ru/docs/stream/ngx_stream_js_module.html"
         lang="ru"
-        rev="8">
+        rev="9">
 
 <section id="summary">
 
 <para>
 Модуль <literal>ngx_stream_js_module</literal> позволяет задавать
-обработчики на <link doc="../njs_about.xml">nginScript</link> —
+обработчики на <link doc="../njs_about.xml">njs</link> —
 подмножестве языка JavaScript.
 </para>
 
 <para>
 По умолчанию этот модуль не собирается, его необходимо собрать с
-модулем nginScript с помощью конфигурационного параметра
+модулем njs с помощью конфигурационного параметра
 <literal>--add-module</literal>:
 <example>
 ./configure --add-module=<value>path-to-njs</value>/nginx
 </example>
 <link url="http://hg.nginx.org/njs">Репозиторий</link>
-модуля nginScript можно клонировать следующей командой
+модуля njs можно клонировать следующей командой
 (необходим клиент <link url="https://www.mercurial-scm.org">Mercurial</link>):
 <example>
 hg clone http://hg.nginx.org/njs
@@ -168,7 +168,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Задаёт функцию nginScript, которая будет вызываться в
+Задаёт функцию njs, которая будет вызываться в
 <link doc="stream_processing.xml" id="access_phase">access</link>-фазе.
 </para>
 
@@ -195,7 +195,7 @@ function xyz(s) {
 
 <para>
 Задаёт файл, который позволяет
-задавать обработчики server и переменных на nginScript.
+задавать обработчики server и переменных на njs.
 </para>
 
 </directive>
@@ -208,7 +208,7 @@ function xyz(s) {
 <context>server</context>
 
 <para>
-Задаёт функцию nginScript, которая будет вызываться в
+Задаёт функцию njs, которая будет вызываться в
 <link doc="stream_processing.xml" id="preread_phase">preread</link>-фазе.
 </para>
 
@@ -222,7 +222,7 @@ function xyz(s) {
 <context>stream</context>
 
 <para>
-Задаёт функцию nginScript для указанной переменной.
+Задаёт функцию njs для указанной переменной.
 </para>
 
 </directive>
@@ -232,7 +232,7 @@ function xyz(s) {
 
 <section id="properties" name="Свойства объекта сессии">
 <para>
-Каждый stream-обработчик nginScript получает один аргумент:
+Каждый stream-обработчик njs получает один аргумент:
 объект stream-сессии.
 </para>