From 240b917399148f8aa2f28ea37a03c1fd7e23832e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 15 Oct 2024 14:54:16 +0200 Subject: Docs and changelog improvements (#5147) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com> Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com> Co-authored-by: Jeremie Knuesel Co-authored-by: +merlan #flirora <2975203+bluebear94@users.noreply.github.com> Co-authored-by: Anselm Schüler --- docs/reference/scripting.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/reference/scripting.md') 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 -- cgit v1.2.3