mirror of
https://github.com/apple/pkl.git
synced 2026-04-24 01:08:34 +02:00
Initial commit
This commit is contained in:
13
docs/modules/ROOT/pages/standard-library.adoc
Normal file
13
docs/modules/ROOT/pages/standard-library.adoc
Normal file
@@ -0,0 +1,13 @@
|
||||
= Standard Library
|
||||
include::../partials/component-attributes.adoc[]
|
||||
|
||||
The standard library is a set of Pkl modules, versioned and distributed together with the language.
|
||||
It is documented in the link:{uri-pkl-stdlib-docs-index}[API Docs].
|
||||
|
||||
To import a standard library module, use `import "pkl:<identifier>"`.
|
||||
For example, `import "pkl:json"` imports the `pkl.json` module.
|
||||
|
||||
The `pkl.base` module defines the most fundamental properties, methods, and classes for using Pkl.
|
||||
Its members are automatically available in every module and hence, it does not need to be imported.
|
||||
|
||||
The default module allowlist (`--allowed-modules`) grants access to all standard library modules.
|
||||
Reference in New Issue
Block a user