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

Allow to easily reference block parameters in the same block #28

Open
bandesz opened this issue Nov 21, 2021 · 0 comments
Open

Allow to easily reference block parameters in the same block #28

bandesz opened this issue Nov 21, 2021 · 0 comments

Comments

@bandesz
Copy link
Member

bandesz commented Nov 21, 2021

Introduce a self keyword, which always resolves to the current block:

server {
  private_ip = "10.0.1.2"
  hostname = "web-1
  
  hostname_uppercase := str_upper(self.hostname)
}

Alternative names: this, current

@bandesz bandesz changed the title Allow to reference block parameters in the same block easier Allow to reference block parameters in the same block easily Nov 21, 2021
@bandesz bandesz changed the title Allow to reference block parameters in the same block easily Allow to easily reference block parameters in the same block Nov 21, 2021
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