summaryrefslogtreecommitdiff
path: root/docs/reference/scripting.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/scripting.md')
-rw-r--r--docs/reference/scripting.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/reference/scripting.md b/docs/reference/scripting.md
index 44f5200c..590bb6ec 100644
--- a/docs/reference/scripting.md
+++ b/docs/reference/scripting.md
@@ -302,7 +302,8 @@ ways:
- **Import:** `{import "bar.typ"}` \
Evaluates the file at the path `bar.typ` and inserts the resulting [module]
into the current scope as `bar` (filename without extension). You can use the
- `as` keyword to rename the imported module: `{import "bar.typ" as baz}`
+ `as` keyword to rename the imported module: `{import "bar.typ" as baz}`. You
+ can import nested items using dot notation: `{import "bar.typ": baz.a}`.
- **Import items:** `{import "bar.typ": a, b}` \
Evaluates the file at the path `bar.typ`, extracts the values of the variables