-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Global Variables #11
Comments
Just as an FYI, you can indent each line with 4 spaces instead of using the 3 ` notation.
|
Probably a bit related to the #6. If we implement it with VM, we can pass |
My idea was to just append the global section to the other scripts according to language. That way, it can setup a global function as well that is used in the other scripts. Much easier to implement than passing total environments from one process to another. |
A shared global section that allows basic data types to be used in all language blocks would be very useful here. (in addition to the original proposal for language-specific globals) EG: ## global
```variables
destdir='~/.dest'
```
instead of ## global
```bash
destdir='~/.dest'
```
```js
var destdir='~/.dest'
``` |
Ah, yes; thanks for that! Much appreciated! |
In a maidfile, it would be nice to have some variables set so that they can be referenced in the other scripts. Therefore, if the following was at the top:
Then the variable
$destdir
can be used in all the other bash scripts. Have the same thing for js scripts also.The four spaces won. Using 4 tick didn't help.
The text was updated successfully, but these errors were encountered: