Mercurial > hg > nginx-site
comparison xml/en/docs/njs/examples.xml @ 2556:c81b1fadbcf3
Updated hello_world example in njs.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Fri, 19 Jun 2020 12:48:01 +0100 |
parents | 87f34fafa4e8 |
children | 7ad967af16b8 |
comparison
equal
deleted
inserted
replaced
2555:5b2764724e0d | 2556:c81b1fadbcf3 |
---|---|
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> | 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
8 | 8 |
9 <article name="Examples" | 9 <article name="Examples" |
10 link="/en/docs/njs/examples.html" | 10 link="/en/docs/njs/examples.html" |
11 lang="en" | 11 lang="en" |
12 rev="14"> | 12 rev="15"> |
13 | 13 |
14 <section id="summary"> | 14 <section id="summary"> |
15 | 15 |
16 <para> | 16 <para> |
17 The examples work since | 17 The examples work since |
28 <example> | 28 <example> |
29 events {} | 29 events {} |
30 | 30 |
31 http { | 31 http { |
32 js_import http.js; | 32 js_import http.js; |
33 js_content http.hello; | 33 |
34 } | 34 server { |
35 | 35 listen 8000; |
36 | |
37 location / { | |
38 js_content http.hello; | |
39 } | |
40 } | |
41 } | |
36 </example> | 42 </example> |
37 </para> | 43 </para> |
38 | 44 |
39 <para> | 45 <para> |
40 <literal>http.js</literal>: | 46 <literal>http.js</literal>: |