Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_js_module.xml @ 2680:8751cab1d562
Corrected example description in js_import.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Fri, 12 Mar 2021 20:34:11 +0000 |
parents | 893cd7724c8c |
children | 45214e5316cd |
comparison
equal
deleted
inserted
replaced
2679:8f3e9ff2785f | 2680:8751cab1d562 |
---|---|
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="25"> | 12 rev="26"> |
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 |
233 <example> | 233 <example> |
234 js_import http.js; | 234 js_import http.js; |
235 </example> | 235 </example> |
236 Here, the module name <literal>http</literal> is used as a namespace | 236 Here, the module name <literal>http</literal> is used as a namespace |
237 while accessing exports. | 237 while accessing exports. |
238 If the imported module contains <literal>foo()</literal>, | 238 If the imported module exports <literal>foo()</literal>, |
239 <literal>http.foo</literal> is used to refer to it. | 239 <literal>http.foo</literal> is used to refer to it. |
240 </para> | 240 </para> |
241 | 241 |
242 <para> | 242 <para> |
243 Several <literal>js_import</literal> directives can be specified. | 243 Several <literal>js_import</literal> directives can be specified. |