-
Notifications
You must be signed in to change notification settings - Fork 38
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
Variables reutilization support #10
Comments
This is partially supported. Starting in v1.2.0, there is the "Global" object, which can be used to persist global variables shared with all mocks. It still lacks a way to naturally persist local script variables, so creating a variable inside a script like the example bellow is not supported so far:
|
Hi @natenho, It would be nice to have this feature. Any idea about how to implement it? I could give it a try but I would appreciate some guidance. |
@gomete We need to do a little research on how to design it and it would affect The challenge is to implement a clean way to carry these variables along and only along a given mock scope. |
Some generated variables are useful to be repeatedly used inside the template body.
The feature could include "environment" or "global" variables, available to all templates and "scope" variables, available only to a given template.
The text was updated successfully, but these errors were encountered: