workflow:
  id: mustache-path-extractor
  name: Mustache Path Extractor
  description: Demonstrates extraction of values from nested dictionaries and lists using Mustache templating with Python and console output.
  disabled: false
  triggers:
    - type: manual
  consts: {}
  owners: []
  services: []
  steps:
    - name: step-with-dict
      provider:
        config: "{{ providers.default-python }}"
        type: python
        with:
          code: "{'hello': 'world', 'nested': {'bye': 'bye'}, 'nested_list': ['a','b','c', {'in': 'list'}]}"
    - name: step-with-list
      provider:
        config: "{{ providers.default-python }}"
        type: python
        with:
          code: "[{'hello': 'world', 'nested': {'bye': 'bye'}, 'nested_list': ['a','b','c', {'in': 'list'}]}]"
    - name: console-step-with-dict
      provider:
        type: console
        with:
          message: "{{ steps.step-with-dict.results.hello }}"
    - name: console-step-with-list
      provider:
        type: console
        with:
          message: "{{ steps.step-with-list.results.0.nested.bye }}"
  actions: []
