-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add 'switch' as a snippet #10
Comments
Thanks Katrin. I'll be sure to get this in the next version. Working on releasing it soon! |
The next release will have a switch tab trigger like below, with tab stops at the variable and values: {% switch variable %}
{% case "value1" %}
{% case "value2" %}
{% default %}
{% endswitch %}``` |
This is now released: https://github.com/BarrelStrength/Craft-Twig.tmbundle/releases |
That's brilliant, thank you Ben. I've just tried to upgrade in Sublime, but I am getting this error:
|
Hey Katrin, I think this is just a cache or session issue due to some name changes in the underlying files. Can you try to:
|
That worked a treat, thank you very much Ben :) |
Would be great if
switch
could be a tab trigger to output:The text was updated successfully, but these errors were encountered: