diff xml/ru/docs/stream/ngx_stream_js_module.xml @ 1858:36cbfff92c6d

Restricted context of js_set directive to http and stream only.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 13 Dec 2016 17:28:36 +0300
parents 8868945bbe97
children 621daf1b77d0
line wrap: on
line diff
--- a/xml/ru/docs/stream/ngx_stream_js_module.xml	Thu Dec 08 19:03:22 2016 +0300
+++ b/xml/ru/docs/stream/ngx_stream_js_module.xml	Tue Dec 13 17:28:36 2016 +0300
@@ -9,7 +9,7 @@
 <module name="Модуль ngx_stream_js_module"
         link="/ru/docs/stream/ngx_stream_js_module.html"
         lang="ru"
-        rev="3">
+        rev="4">
 
 <section id="summary">
 
@@ -58,15 +58,14 @@
 stream {
     js_include stream.js;
 
+    js_set $foo foo;
+    js_set $bar bar;
+
     server {
         listen 12345;
 
         js_preread qux;
-
-        js_set $foo foo;
-        js_set $bar bar;
-
-        return foo;
+        return     foo;
     }
 
     server {
@@ -231,7 +230,6 @@
 <value>$переменная</value> <value>функция</value></syntax>
 <default/>
 <context>stream</context>
-<context>server</context>
 
 <para>
 Задаёт функцию nginScript для указанной переменной.