render_zwo
Convert cycling workout specs to MyWhoosh .zwo files, outputting XML and a filename; optionally write to disk.
Instructions
Render a workout spec to a MyWhoosh-compatible .zwo file.
Returns the XML and the filename to upload it under. That filename matters: MyWhoosh takes the workout's library name from the uploaded filename, not from the tag inside the file. Set the spec's "filename" field to control it.
Ramps are emitted as explicit and repeats are flattened into individual blocks, both so the result stays unambiguous and editable inside MyWhoosh's editor.
Pass out_path to also write the file to disk; the content is returned either way. Writing is the only filesystem access this server performs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| out_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |