Hi, I would like to request Antlers support in web-mode. This is the templating language for the Statamic cms. The following has been taken from Statamic's antlers documentation.
If you need any more info, I'll be glad to trackdown what ever you need.
Delimiters
{{ }} The basic and primary delimiter pair, used to render variables, evaluate expressions, call Tags, and do almost all core Antlers things.
{{? ?}} and {{$ $}} Allow you to write, execute, and echo PHP. I guess ideally these would use php syntax highlighting, but its not important.
{{# #}} Are for code comments.
Tags
These are all acceptably formatted tags.
{{ perfectenschlag }}
{{squished}}
{{ some_variabler | upper }}
{{ nav :from="segment_1" }}
{{ collection:blog limit="{entry_limit ?? 10}" }}
{{
testimonials
limit="5"
order="username"
}}
{{playSad_Tromb0ne }}
Variable must start with an alpha character or underscore (a-zA-Z_), followed by any number of additional uppercase or lowercase alphanumeric characters, hyphens, or underscores (a-zA-Z_0-9). Spaces or other special characters are not allowed.
Indenting
If:
{{ if meta_title }}
{{ meta_title }}
{{ elseif title }}
{{ title }}
{{ else }}
{{ site:name }}
{{ /if }}
{{ if neighbor == "Kramer" }}
<p>These pretzels are making me thirsty!</p>
{{ elseif neighbor == "Newman" }}
<div>
<p>Hello...Newman.</p>
</div>
{{ else }}
<!-- Who are you? -->
{{ /if }}
Unless:
{{ unless logged_in }}
You see a large wardrobe in front of you.
{{ /unless }}
Unfortunately any tag can have a closing tag. It's probably not realistic to try and find a closing tag for all the variables since there is know way to tell if it is iterable or not, but, if you do have a way to do that, that would be awesome.
{{some_things}}
<li>"value" is a built in variable in antlers: {{value}}</li>
{{/some_things}}
Hi, I would like to request Antlers support in web-mode. This is the templating language for the Statamic cms. The following has been taken from Statamic's antlers documentation.
If you need any more info, I'll be glad to trackdown what ever you need.
Delimiters
{{ }}
The basic and primary delimiter pair, used to render variables, evaluate expressions, call Tags, and do almost all core Antlers things.{{? ?}}
and{{$ $}}
Allow you to write, execute, and echo PHP. I guess ideally these would use php syntax highlighting, but its not important.{{# #}}
Are for code comments.Tags
These are all acceptably formatted tags.
{{ perfectenschlag }}
{{squished}}
{{ some_variabler | upper }}
{{ nav :from="segment_1" }}
{{ collection:blog limit="{entry_limit ?? 10}" }}
{{playSad_Tromb0ne }}
Variable must start with an alpha character or underscore (
a-zA-Z_
), followed by any number of additional uppercase or lowercase alphanumeric characters, hyphens, or underscores (a-zA-Z_0-9
). Spaces or other special characters are not allowed.Indenting
If:
Unless:
Switch:
More complicated
Unfortunately any tag can have a closing tag. It's probably not realistic to try and find a closing tag for all the variables since there is know way to tell if it is iterable or not, but, if you do have a way to do that, that would be awesome.