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

Resolving nested variable names #88

Open
puria opened this issue Mar 4, 2024 · 0 comments
Open

Resolving nested variable names #88

puria opened this issue Mar 4, 2024 · 0 comments
Assignees

Comments

@puria
Copy link
Member

puria commented Mar 4, 2024

In zenroom I'm limited to resolve something named in the root of the object and then, extract, extract and dig for the stuff we need.
For slangroom i suggest to have also nested resolve, like a lodash _.get().
e.g

Given I pass some_var 'obj.a[0].var' ...

DATA or KEYS

{
  "obj": {
    "a": [
      {"var": "fooooopete" },
      {"var": "booope" },
    ]
  }
}

This should pass fooooopete to the sentence

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

2 participants