# HG changeset patch # User Yaroslav Zhuravlev # Date 1522776220 -10800 # Node ID 59a3cc84f5071a59dec5f29804efd75579883770 # Parent 284598bb7fbbbf89c9480479c5aa9c321b800b28 Renamed nginScript to njs diff -r 284598bb7fbb -r 59a3cc84f507 xml/en/docs/http/ngx_http_js_module.xml --- a/xml/en/docs/http/ngx_http_js_module.xml Tue Apr 03 17:57:15 2018 +0300 +++ b/xml/en/docs/http/ngx_http_js_module.xml Tue Apr 03 20:23:40 2018 +0300 @@ -9,26 +9,26 @@ + rev="8">
The ngx_http_js_module module is used to implement location and variable handlers -in nginScript — +in njs — a subset of the JavaScript language. This module is not built by default, it should be compiled with -the nginScript module using the +the njs module using the --add-module configuration parameter: ./configure --add-module=path-to-njs/nginx The repository -with the nginScript module can be cloned with the following command +with the njs module can be cloned with the following command (requires Mercurial client): hg clone http://hg.nginx.org/njs @@ -125,7 +125,7 @@ http -Specifies a file that implements location and variable handlers in nginScript. +Specifies a file that implements location and variable handlers in njs. @@ -138,7 +138,7 @@ limit_except -Sets an nginScript function as a location content handler. +Sets an njs function as a location content handler. @@ -151,7 +151,7 @@ http -Sets an nginScript function for the specified variable. +Sets an njs function for the specified variable. @@ -161,7 +161,7 @@
-Each HTTP nginScript handler receives two arguments, request and response. +Each HTTP njs handler receives two arguments, request and response. diff -r 284598bb7fbb -r 59a3cc84f507 xml/en/docs/njs_about.xml --- a/xml/en/docs/njs_about.xml Tue Apr 03 17:57:15 2018 +0300 +++ b/xml/en/docs/njs_about.xml Tue Apr 03 20:23:40 2018 +0300 @@ -6,19 +6,19 @@ -
+ rev="14">
-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 http and stream. -nginScript is created in compliance with +njs is created in compliance with ECMAScript 5.1 with some ECMAScript 6 @@ -229,7 +229,7 @@
-nginScript is available in two modules: +njs is available in two modules: @@ -249,12 +249,12 @@
-For Linux, nginScript modules +For Linux, njs modules packages can be used: -nginx-module-njs — nginScript +nginx-module-njs — njs dynamic modules @@ -273,7 +273,7 @@ The repository -with nginScript sources can be cloned with the following command: +with njs sources can be cloned with the following command: (requires Mercurial client): hg clone http://hg.nginx.org/njs diff -r 284598bb7fbb -r 59a3cc84f507 xml/en/docs/stream/ngx_stream_js_module.xml --- a/xml/en/docs/stream/ngx_stream_js_module.xml Tue Apr 03 17:57:15 2018 +0300 +++ b/xml/en/docs/stream/ngx_stream_js_module.xml Tue Apr 03 20:23:40 2018 +0300 @@ -9,25 +9,25 @@ + rev="9">
The ngx_stream_js_module module is used to implement -handlers in nginScript — +handlers in njs — a subset of the JavaScript language. This module is not built by default, it should be compiled with -the nginScript module using the +the njs module using the --add-module configuration parameter: ./configure --add-module=path-to-njs/nginx The repository -with the nginScript module can be cloned with the following command +with the njs module can be cloned with the following command (requires Mercurial client): hg clone http://hg.nginx.org/njs @@ -168,7 +168,7 @@ server -Sets an nginScript function which will be called at the +Sets an njs function which will be called at the access phase. @@ -194,7 +194,7 @@ stream -Specifies a file that implements server and variable handlers in nginScript. +Specifies a file that implements server and variable handlers in njs. @@ -207,7 +207,7 @@ server -Sets an nginScript function which will be called at the +Sets an njs function which will be called at the preread phase. @@ -221,7 +221,7 @@ stream -Sets an nginScript function for the specified variable. +Sets an njs function for the specified variable. @@ -231,7 +231,7 @@
-Each stream nginScript handler receives one argument, a stream session object. +Each stream njs handler receives one argument, a stream session object. diff -r 284598bb7fbb -r 59a3cc84f507 xml/ru/docs/http/ngx_http_js_module.xml --- a/xml/ru/docs/http/ngx_http_js_module.xml Tue Apr 03 17:57:15 2018 +0300 +++ b/xml/ru/docs/http/ngx_http_js_module.xml Tue Apr 03 20:23:40 2018 +0300 @@ -9,26 +9,26 @@ + rev="8">
Модуль ngx_http_js_module позволяет задавать обработчики location и переменных -на nginScript — +на njs — подмножестве языка JavaScript. По умолчанию этот модуль не собирается, его необходимо собрать с -модулем nginScript с помощью конфигурационного параметра +модулем njs с помощью конфигурационного параметра --add-module: ./configure --add-module=path-to-njs/nginx Репозиторий -модуля nginScript можно клонировать следующей командой +модуля njs можно клонировать следующей командой (необходим клиент Mercurial): hg clone http://hg.nginx.org/njs @@ -126,7 +126,7 @@ Задаёт файл, позволяющий задавать обработчики location и переменных -на nginScript. +на njs. @@ -139,7 +139,7 @@ limit_except -Задаёт функцию nginScript в качестве обработчика содержимого location. +Задаёт функцию njs в качестве обработчика содержимого location. @@ -152,7 +152,7 @@ http -Задаёт функцию nginScript для указанной переменной. +Задаёт функцию njs для указанной переменной. @@ -162,7 +162,7 @@
-Каждый HTTP-обработчик nginScript получает два аргумента: запрос и ответ. +Каждый HTTP-обработчик njs получает два аргумента: запрос и ответ. diff -r 284598bb7fbb -r 59a3cc84f507 xml/ru/docs/njs_about.xml --- a/xml/ru/docs/njs_about.xml Tue Apr 03 17:57:15 2018 +0300 +++ b/xml/ru/docs/njs_about.xml Tue Apr 03 20:23:40 2018 +0300 @@ -6,19 +6,19 @@ -
+ rev="14">
-nginScript - это подмножество языка JavaScript, который позволяет +njs - это подмножество языка JavaScript, который позволяет задавать обработчики location и переменных в http и stream. -nginScript совместим с +njs совместим с ECMAScript 5.1 c некоторыми расширениями ECMAScript 6. @@ -228,7 +228,7 @@
-nginScript доступен в двух модулях: +njs доступен в двух модулях: @@ -248,14 +248,14 @@
-Для установки модулей nginScript на Linux могут быть использованы +Для установки модулей njs на Linux могут быть использованы пакеты: nginx-module-njs — динамические модули -nginScript +njs @@ -273,7 +273,7 @@ Репозиторий -с исходным кодом nginScript можно клонировать следующей командой: +с исходным кодом njs можно клонировать следующей командой: (необходим клиент Mercurial): hg clone http://hg.nginx.org/njs diff -r 284598bb7fbb -r 59a3cc84f507 xml/ru/docs/stream/ngx_stream_js_module.xml --- a/xml/ru/docs/stream/ngx_stream_js_module.xml Tue Apr 03 17:57:15 2018 +0300 +++ b/xml/ru/docs/stream/ngx_stream_js_module.xml Tue Apr 03 20:23:40 2018 +0300 @@ -9,25 +9,25 @@ + rev="9">
Модуль ngx_stream_js_module позволяет задавать -обработчики на nginScript — +обработчики на njs — подмножестве языка JavaScript. По умолчанию этот модуль не собирается, его необходимо собрать с -модулем nginScript с помощью конфигурационного параметра +модулем njs с помощью конфигурационного параметра --add-module: ./configure --add-module=path-to-njs/nginx Репозиторий -модуля nginScript можно клонировать следующей командой +модуля njs можно клонировать следующей командой (необходим клиент Mercurial): hg clone http://hg.nginx.org/njs @@ -168,7 +168,7 @@ server -Задаёт функцию nginScript, которая будет вызываться в +Задаёт функцию njs, которая будет вызываться в access-фазе. @@ -195,7 +195,7 @@ Задаёт файл, который позволяет -задавать обработчики server и переменных на nginScript. +задавать обработчики server и переменных на njs. @@ -208,7 +208,7 @@ server -Задаёт функцию nginScript, которая будет вызываться в +Задаёт функцию njs, которая будет вызываться в preread-фазе. @@ -222,7 +222,7 @@ stream -Задаёт функцию nginScript для указанной переменной. +Задаёт функцию njs для указанной переменной. @@ -232,7 +232,7 @@
-Каждый stream-обработчик nginScript получает один аргумент: +Каждый stream-обработчик njs получает один аргумент: объект stream-сессии.