summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-05-18 09:40:18 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-05-19 21:53:55 +0200
commit72e423363b54456346a20f45cac6bcb363902444 (patch)
tree805fca9f42197ba6344b671f99b2c920c8197351
parente05fcad1370d7268a45f51bce2f1e32cc527bb92 (diff)
Describe asset exporting in README
-rw-r--r--README.md14
1 files changed, 11 insertions, 3 deletions
diff --git a/README.md b/README.md
index e64f148..f9a64a2 100644
--- a/README.md
+++ b/README.md
@@ -466,9 +466,17 @@ test:
send to p "use-asset ${my_asset.path}"
```
-The `my_asset.path` expression expands to a strict containing path to the asset
-that can be used by the spawn process `p`. The process should not try to modify
-the file.
+The `my_asset.path` expression expands to a string containing path to the asset
+that can be used by the spawned process `p`. The process should not try to
+modify the file.
+
+Assets can be exported for use in other modules using the `export` keyword,
+just like other definitions:
+
+```
+export asset my_asset:
+ path: ../path/to/file
+```
Optional dependencies