The external properties available to Pkl, read using the prop: scheme.
prop:
The environment variables available to Pkl, read using the env: scheme.
env:
Example:
env { ["IS_PROD"] = "true" }
The set of module URI patterns that can be imported.
Each element is a regular expression pattern that is tested against a module import.
Modules are imported either through an amends or extends clause, an import clause, or an import expression.
allowedModules { "https:" "file:" "package:" "projectpackage:" }
The set of resource URI patterns that can be imported.
Each element is a regular expression pattern that is tested against a resource read.
allowedResources { "https:" "file:" "package:" "projectpackage:" "env:" "prop:" }
Disables the file system cache for package: modules.
package:
When cacheing is disabled, packages are loaded over the network and stored in memory.
A collection of jars, zips, or directories to be placed into the module path.
Module path modules and resources may be read and imported using the modulepath: scheme.
modulepath:
Relative paths are resolved against PklProject's enclosing directory.
The duration after which evaluation of a source module will be timed out.
Note that a timeout is treated the same as a program error in that any subsequent source modules will not be evaluated.
The directory where package: modules are cached.
Restricts access to file-based modules and resources to those located under this directory.
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if this object has a property with the given name.
name
Returns the value of the property with the given name.
Throws if a property with this name does not exist.
Returns null if a property with this name does not exist.
Converts this object to a Dynamic object.
Dynamic
Converts this object to a Map.
Map
The external properties available to Pkl, read using the
prop:
scheme.