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