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

Support with tag in templates #996

Closed
vanstee opened this issue Sep 28, 2016 · 1 comment
Closed

Support with tag in templates #996

vanstee opened this issue Sep 28, 2016 · 1 comment
Assignees

Comments

@vanstee
Copy link
Member

vanstee commented Sep 28, 2016

it's common to want to conditionally change scope, similar to how mustache templates work. Let's implement a with tag to do exactly that. Here's an example:

~with $command.bundle.author as=bundle_author~
  Author: ~$bundle_author~
~end~

which is essentially the same as:

~if cond=$command.bundle.author~
  Author: $command.bundle.author~
~end~
@vanstee vanstee self-assigned this Sep 28, 2016
@christophermaier
Copy link
Collaborator

This issue was moved to operable/greenbar#53

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

2 participants