Mercurial > hg > nginx-site
comparison xml/en/docs/njs_about.xml @ 2128:59a3cc84f507
Renamed nginScript to njs
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 03 Apr 2018 20:23:40 +0300 |
parents | 07239ff77f50 |
children | 4212f4520070 |
comparison
equal
deleted
inserted
replaced
2127:284598bb7fbb | 2128:59a3cc84f507 |
---|---|
4 Copyright (C) Nginx, Inc. | 4 Copyright (C) Nginx, Inc. |
5 --> | 5 --> |
6 | 6 |
7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="About nginScript" | 9 <article name="About njs" |
10 link="/en/docs/njs_about.html" | 10 link="/en/docs/njs_about.html" |
11 lang="en" | 11 lang="en" |
12 rev="13"> | 12 rev="14"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 nginScript is a subset of the JavaScript language that allows | 17 njs is a subset of the JavaScript language that allows |
18 implementing location and variable handlers in | 18 implementing location and variable handlers in |
19 <link doc="http/ngx_http_js_module.xml">http</link> and | 19 <link doc="http/ngx_http_js_module.xml">http</link> and |
20 <link doc="stream/ngx_stream_js_module.xml">stream</link>. | 20 <link doc="stream/ngx_stream_js_module.xml">stream</link>. |
21 nginScript is created in compliance with | 21 njs is created in compliance with |
22 <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link> | 22 <link url="http://www.ecma-international.org/ecma-262/5.1/">ECMAScript 5.1</link> |
23 with some | 23 with some |
24 <link url="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 6</link> | 24 <link url="http://www.ecma-international.org/ecma-262/6.0/">ECMAScript 6</link> |
25 extensions. | 25 extensions. |
26 The compliance is still evolving. | 26 The compliance is still evolving. |
227 | 227 |
228 | 228 |
229 <section id="install" name="Download and install"> | 229 <section id="install" name="Download and install"> |
230 | 230 |
231 <para> | 231 <para> |
232 nginScript is available in two modules: | 232 njs is available in two modules: |
233 <list type="bullet"> | 233 <list type="bullet"> |
234 | 234 |
235 <listitem> | 235 <listitem> |
236 <link doc="http/ngx_http_js_module.xml">ngx_http_js_module</link> | 236 <link doc="http/ngx_http_js_module.xml">ngx_http_js_module</link> |
237 </listitem> | 237 </listitem> |
247 </para> | 247 </para> |
248 | 248 |
249 | 249 |
250 <section id="install_package" name="Installing as a Linux package"> | 250 <section id="install_package" name="Installing as a Linux package"> |
251 <para> | 251 <para> |
252 For Linux, nginScript modules | 252 For Linux, njs modules |
253 <link doc="../linux_packages.xml" id="dynmodules">packages</link> can be used: | 253 <link doc="../linux_packages.xml" id="dynmodules">packages</link> can be used: |
254 <list type="bullet"> | 254 <list type="bullet"> |
255 | 255 |
256 <listitem> | 256 <listitem> |
257 <literal>nginx-module-njs</literal> — nginScript | 257 <literal>nginx-module-njs</literal> — njs |
258 <link doc="ngx_core_module.xml" id="load_module">dynamic</link> modules | 258 <link doc="ngx_core_module.xml" id="load_module">dynamic</link> modules |
259 </listitem> | 259 </listitem> |
260 | 260 |
261 <listitem> | 261 <listitem> |
262 <literal>nginx-module-njs-dbg</literal> — debug symbols for the | 262 <literal>nginx-module-njs-dbg</literal> — debug symbols for the |
271 | 271 |
272 <section id="install_sources" name="Building from the sources"> | 272 <section id="install_sources" name="Building from the sources"> |
273 | 273 |
274 <para> | 274 <para> |
275 The <link url="http://hg.nginx.org/njs">repository</link> | 275 The <link url="http://hg.nginx.org/njs">repository</link> |
276 with nginScript sources can be cloned with the following command: | 276 with njs sources can be cloned with the following command: |
277 (requires <link url="https://www.mercurial-scm.org">Mercurial</link> client): | 277 (requires <link url="https://www.mercurial-scm.org">Mercurial</link> client): |
278 <example> | 278 <example> |
279 hg clone http://hg.nginx.org/njs | 279 hg clone http://hg.nginx.org/njs |
280 </example> | 280 </example> |
281 Then the modules should be compiled using the | 281 Then the modules should be compiled using the |