comparison xml/en/docs/stream/ngx_stream_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 7517de030c0a
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_stream_js_module" 9 <module name="Module ngx_stream_js_module"
10 link="/en/docs/stream/ngx_stream_js_module.html" 10 link="/en/docs/stream/ngx_stream_js_module.html"
11 lang="en" 11 lang="en"
12 rev="23"> 12 rev="24">
13 13
14 <section id="summary"> 14 <section id="summary">
15 15
16 <para> 16 <para>
17 The <literal>ngx_stream_js_module</literal> module is used to implement 17 The <literal>ngx_stream_js_module</literal> module is used to implement
176 <example> 176 <example>
177 js_import stream.js; 177 js_import stream.js;
178 </example> 178 </example>
179 Here, the module name <literal>stream</literal> is used as a namespace 179 Here, the module name <literal>stream</literal> is used as a namespace
180 while accessing exports. 180 while accessing exports.
181 If the imported module contains <literal>foo()</literal>, 181 If the imported module exports <literal>foo()</literal>,
182 <literal>stream.foo</literal> is used to refer to it. 182 <literal>stream.foo</literal> is used to refer to it.
183 </para> 183 </para>
184 184
185 <para> 185 <para>
186 Several <literal>js_import</literal> directives can be specified. 186 Several <literal>js_import</literal> directives can be specified.