Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 775 Bytes

include.rst

File metadata and controls

26 lines (23 loc) · 775 Bytes

The include statement

Basic Usage

You can use the !include statement on maps and lists. You have to ensure that the final document structure is still a valid spline document. Spline will run the validation after the include has been done.

```yaml model: !include library/model.yaml pipeline:

  • stage(Setup): !include library/setup.yaml
  • stage(Build): !include library/build.yaml
  • stage(Test):
    • !include library/setup-test.yaml
    • !include library/run-test.yaml
    • !include library/teardown-test.yaml
  • stage(Deploy): !include library/deploy.yaml

```

Notes

  • The loader is evaluating the !include statement for the main document
only (by intention).
  • the specified file has to exist!