diff xml/en/docs/http/ngx_http_js_module.xml @ 2693:3cbd6e440581

Documented the js_var directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Mon, 29 Mar 2021 19:40:27 +0100
parents 45214e5316cd
children 42fb92e582db
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,7 +9,7 @@
 <module name="Module ngx_http_js_module"
         link="/en/docs/http/ngx_http_js_module.html"
         lang="en"
-        rev="27">
+        rev="28">
 
 <section id="summary">
 
@@ -321,6 +321,25 @@ right before the request is freed.
 
 </directive>
 
+
+<directive name="js_var">
+<syntax><value>$variable</value> [<value>value</value>]</syntax>
+<default/>
+<context>http</context>
+<appeared-in>0.5.3</appeared-in>
+
+<para>
+Declares
+a <link doc="../njs/reference.xml" id="r_variables">writable</link>
+variable.
+The value can contain text, variables, and their combination.
+The variable is not overwritten after a redirect
+unlike variables created with the
+<link doc="ngx_http_rewrite_module.xml" id="set"/> directive.
+</para>
+
+</directive>
+
 </section>