file.load

type: meya.file.component.load
class: FileLoadComponent
path: /meya/file/component/load.py
signature: file_path

file_path: relative file path from the app root including filename
render: if True, renders using Meya's jinja2 templating
context: dict used for jinja2 templating, if None defaults to app render context

Fields

field

signature

required

type

default

description               

spec

ForwardRef('Spec')

null

Override the original spec for this element

context

dict

{}

Send context data with this component's event

sensitive

bool

false

Mark this component's event as sensitive

triggers

list

[]

Activate these dynamic triggers when the component runs

file_path

str

template

bool

false

template_context

dict

null

Examples

Basic

triggers:
  - keyword: meya.file.component.load
steps:
  - file_path: STRING

Full

triggers:
  - keyword: meya.file.component.load
steps:
  - spec: '?'
    context:
      STRING: ANY
    sensitive: false
    triggers:
      - type: STRING
        data:
          STRING: ANY
        timeout: 123
        trigger_when: ANY
    file_path: STRING
    template: false
    template_context:
      STRING: ANY