Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

propagate context through module calls #10

Open
mattfysh opened this issue Aug 10, 2024 · 1 comment
Open

propagate context through module calls #10

mattfysh opened this issue Aug 10, 2024 · 1 comment

Comments

@mattfysh
Copy link
Member

mattfysh commented Aug 10, 2024

related to #4

allows reusable logic to be embedded within a module and called from any contextual expression

Signal.get

inputs { text }

extract
  -> xpath:.//div[contains(@class, 'flex-row')][div[contains(text(), '$text')]]
  -> .signal-value > script
  -> @js
  -> Literal

Signals.get

import Signal

extract {
  from: $Signal({ text: "From" })
  buy_at: $Signal({ text: "Buy at" })
}
@mattfysh
Copy link
Member Author

should also allow complex values to be passed between modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant