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

Variable references #35

Merged
merged 2 commits into from Jul 13, 2017
Merged

Variable references #35

merged 2 commits into from Jul 13, 2017

Conversation

brikis98
Copy link
Member

In #34, I added the ability for boilerplate variables to use Go templating syntax in their default value. The main use case for this was to be able to reuse values from other boilerplate variables. This works fine for strings, but the issue is if you want to reference another variable with a non-string type (e.g. list), the templating syntax doesn’t help, as it always returns a string.

The best solution I can come up with for now is to add support for a new reference keyword that allows you to specify that one variable should use the value of another variable. That value can be of any type.

@brikis98
Copy link
Member Author

Merging. Feedback welcome.

@brikis98 brikis98 merged commit 1bc00c9 into master Jul 13, 2017
@brikis98 brikis98 deleted the variable-types branch July 13, 2017 17:16
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

Successfully merging this pull request may close these issues.

None yet

1 participant