Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_js_module.xml @ 2996:98bd95a5ac70
Added link to Preload Objects from js_preload_object.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 16 Aug 2023 12:12:22 +0100 |
parents | 7e83ebfac8ca |
children | 7eafa16bb07c |
comparison
equal
deleted
inserted
replaced
2995:89ab7fc9fea5 | 2996:98bd95a5ac70 |
---|---|
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="38"> | 12 rev="39"> |
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 |
547 <context>server</context> | 547 <context>server</context> |
548 <context>location</context> | 548 <context>location</context> |
549 <appeared-in>0.7.8</appeared-in> | 549 <appeared-in>0.7.8</appeared-in> |
550 | 550 |
551 <para> | 551 <para> |
552 Preloads an immutable object at configure time. | 552 Preloads an |
553 <link doc="../njs/preload_objects.xml">immutable object</link> | |
554 at configure time. | |
553 The <literal>name</literal> is used a name of the global variable | 555 The <literal>name</literal> is used a name of the global variable |
554 though which the object is available in njs code. | 556 though which the object is available in njs code. |
555 If the <literal>name</literal> is not specified, | 557 If the <literal>name</literal> is not specified, |
556 the file name will be used instead. | 558 the file name will be used instead. |
557 <example> | 559 <example> |