mirror of
https://github.com/mcuadros/ascode
synced 2024-05-09 17:16:16 +02:00
20 lines
422 B
Plaintext
20 lines
422 B
Plaintext
# test relative loading
|
|
load("includes/foo.star", "foo")
|
|
|
|
# evaluate and correct base_path
|
|
mod = evaluate("includes/foo.star")
|
|
print(mod.foo)
|
|
|
|
# module constructor
|
|
module("foo")
|
|
|
|
# test defined modules
|
|
load("encoding/json", "json")
|
|
load("encoding/base64", "base64")
|
|
load("encoding/csv", "csv")
|
|
load("encoding/yaml", "yaml")
|
|
load("math", "math")
|
|
load("re", "re")
|
|
load("time", "time")
|
|
load("http", "http")
|
|
load("url", "url") |