derrickaw commented on code in PR #35931: URL: https://github.com/apache/beam/pull/35931#discussion_r2304663141
########## website/www/site/content/en/documentation/sdks/yaml.md: ########## @@ -742,6 +742,74 @@ would write to files like `gs://path/to/2016/08/04/dated-output*.json`. +A user can also use the `% include` directive to pull in other common templates: + +<PATH_TO_YOUR_REPO>/pipeline.yaml +```sh +pipeline: + transforms: + - name: Read from GCS + type: ReadFromText + config: +{% include '<PATH_TO_YOUR_REPO>/submodules/readFromText.yaml' %} + - name: Write to GCS + type: WriteToText + input: Read from GCS + config: + path: "gs://MY-BUCKET/wordCounts/" +``` + +<PATH_TO_YOUR_REPO>/submodules/readFromText.yaml +```sh + path: {{readFromText.path}} +``` + +This pipeline can be ran like this: Review Comment: done, thanks -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org