diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-05-18 09:40:18 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-05-19 21:53:55 +0200 |
commit | 72e423363b54456346a20f45cac6bcb363902444 (patch) | |
tree | 805fca9f42197ba6344b671f99b2c920c8197351 | |
parent | e05fcad1370d7268a45f51bce2f1e32cc527bb92 (diff) |
Describe asset exporting in README
-rw-r--r-- | README.md | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |