summaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-10 17:03:23 +0200
committerGitHub <noreply@github.com>2021-05-10 17:03:23 +0200
commitfbf3dfad950310a0a7c5ae29f25312733fa9063d (patch)
treefc7643b7fa5384b0abf8ff3780bca72f38ca1db1 /README.md
parenteb8a64d461851756e65093edf923bd534e86aae5 (diff)
parente546bbaf6bbee16356beb675cc3e806d9793688e (diff)
Merge pull request #10 from jow-/introduce-render-fn
Introduce render() function
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 549459e..83bfc07 100644
--- a/README.md
+++ b/README.md
@@ -998,7 +998,7 @@ json('{"a":true, "b":123}') // { "a": true, "b": 123 }
json('[1,2,') // Throws exception
```
-#### 6.50. `include(path, scope)`
+#### 6.50. `include(path[, scope])`
Evaluate and include the file at the given path and optionally override the
execution scope with the given scope object.
@@ -1113,3 +1113,9 @@ an invalid value was passed, otherwise `true`.
Raise an exception with the given `message` parameter if the value in `cond`
is not truish. When `message` is omitted, the default value is `Assertion failed`.
+
+#### 6.57. `render(path[, scope])`
+
+Like `include()` but capture output of included file as string and return it.
+
+See `include()` for details on scoping.