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 #53

Open
christophermaier opened this issue Mar 31, 2017 · 0 comments
Open

Support with tag in templates #53

christophermaier opened this issue Mar 31, 2017 · 0 comments

Comments

@christophermaier
Copy link
Collaborator

From @vanstee on September 28, 2016 13:41

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~

Copied from original issue: operable/cog#996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants