-
Notifications
You must be signed in to change notification settings - Fork 6
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
Documentation: Fix incorrect statement about variable scope #13
Comments
I'm not sure I understand. This is doable now. Create a |
Ok...that is exactly the opposite of what is documented under "Variable Scope" at https://incident57.com/codekit/help.html#kit
(The last sentence is exactly what I want to do) But to be honest, I have never really tried it (because of said documentation). Apparently, I'm a blind sheep. |
You are correct. I just verified that you can, for example, create a base file, and then @include the strings file, and then access the variables defined in the strings file from the base file. I will change the title of this to actually fix the documentation so as not to cause confusion. All that needs to be done (IMO) is following sentence should be deleted (or modified):
|
Yea. I meant that the variables aren't available in the master file before the import statement that brings in beta. That's standard for every language I know Sent from my iPhone
|
For example, I'd love to define all my localization strings as variables in a single file (
strings.en.kit
) and then be able to use them in the parent file (and every other file that the parent imports).I think that the default behavior should be like it is right now, when you do
<!-- @import page -->
, but perhaps I suggest a<!-- @importGlobal page -->
or something similar (perhaps even to ONLY allow variables when doing@importGlobal
...and maybe the file format is just:Or call the command
@importVars
or something...I'm not too worried about syntax - I just think it might be nice to have a single include for importing all variables (at least the default values).The text was updated successfully, but these errors were encountered: