Read and process a data file. The path
parameter may be absolute, or relative from the current application.
let's say we have a file, crew.txt in our data directory, which is a text file with a list of names, one per line. For example:
RygelJohnScorpiesKa D'Argo
We can read the above file and process each line with the following:
<read-data format="text/plain" path="crew.txt" dst="crew" /><for src="splitlines:crew" dst="characters"><echo>${character} is on board</echo></for>
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
from |
Application | application reference | No | ||
fs |
FS name | text | No | "data" |
|
mimetype |
Mime Type of file (omit to guess based on extension) | text | No | ||
path |
Path to data file in data filesystem | text | No |
name | purpose | type | required? | default | choices |
---|---|---|---|---|---|
dst |
Destination | reference | No | ||
if |
Conditional expression | expression | No | yes |
|
value |
Value | expression | No | None |