Mercurial > hg > nginx-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
2692:3fe54f96476a | 2693:3cbd6e440581 |
---|---|
7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 7 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
8 | 8 |
9 <module name="Module ngx_http_js_module" | 9 <module name="Module ngx_http_js_module" |
10 link="/en/docs/http/ngx_http_js_module.html" | 10 link="/en/docs/http/ngx_http_js_module.html" |
11 lang="en" | 11 lang="en" |
12 rev="27"> | 12 rev="28"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The <literal>ngx_http_js_module</literal> module is used to implement | 17 The <literal>ngx_http_js_module</literal> module is used to implement |
319 right before the request is freed. | 319 right before the request is freed. |
320 </para> | 320 </para> |
321 | 321 |
322 </directive> | 322 </directive> |
323 | 323 |
324 | |
325 <directive name="js_var"> | |
326 <syntax><value>$variable</value> [<value>value</value>]</syntax> | |
327 <default/> | |
328 <context>http</context> | |
329 <appeared-in>0.5.3</appeared-in> | |
330 | |
331 <para> | |
332 Declares | |
333 a <link doc="../njs/reference.xml" id="r_variables">writable</link> | |
334 variable. | |
335 The value can contain text, variables, and their combination. | |
336 The variable is not overwritten after a redirect | |
337 unlike variables created with the | |
338 <link doc="ngx_http_rewrite_module.xml" id="set"/> directive. | |
339 </para> | |
340 | |
341 </directive> | |
342 | |
324 </section> | 343 </section> |
325 | 344 |
326 | 345 |
327 <section id="arguments" name="Request Argument"> | 346 <section id="arguments" name="Request Argument"> |
328 | 347 |