From 21d1e71bf0114db69d0bff69b9db0c806b1b07f7 Mon Sep 17 00:00:00 2001 From: Yvan Zhu Date: Thu, 14 Nov 2024 22:49:55 +0800 Subject: [PATCH] Update README.rst --- README.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index e00fd97..5bc46e0 100644 --- a/README.rst +++ b/README.rst @@ -85,7 +85,7 @@ nginx.conf: } } -example.js: +http/hello.js: .. code-block:: js @@ -95,6 +95,16 @@ example.js: export default {hello} +utils.js: + +.. code-block:: js + + function version(r) { + r.return(200, njs.version); + } + + export default {version} + Checking: .. code-block:: shell