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

Feature Request - Refer to Value and Interpolate with Static Text #21

Open
ryandanielspmc opened this issue Sep 25, 2020 · 0 comments
Open

Comments

@ryandanielspmc
Copy link

It would be cool to be able to refer to a field value interpolated within static text:

  'genv.sites.code.with' = '#{regexify ''[a-c][1-3]''}',
  'genv.sites.url.matching' = 'http://#(sites.valuecode).com'

This is already possible with Faker expressions:

  'genv.topic.something.with' = 'xyz#{regexify ''[a-c][1-3]''}123'

In the top example, I used #() to differentiate from Faker interpolations. An idea of how it could be done, but not saying that it is the best way.

If there were a special syntax for splicing in values from other fields, it might not be necessary to have matching. The with could be something like:

'genv.topic.field.with' = 'ABC.#{regexify ''[a-c][1-3]''}.#(topic.value.other_field).XYZ',
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