Created
July 28, 2020 14:54
-
-
Save geekish/ceedd66772795059478bbca78560d111 to your computer and use it in GitHub Desktop.
Atom snippets for Statamic's Antlers language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.text.html.statamic': | |
'antlers-404': | |
'prefix': '404' | |
'body': '{{ 404 }}$0' | |
'antlers-asset': | |
'prefix': 'asset' | |
'body': '{{ asset url="${1:path}" }}' | |
'antlers-assets-container': | |
'prefix': 'assets' | |
'body': '{{ assets container="${1:handle}" }}\n\t${2:}\n{{ /assets }}$0' | |
'antlers-cache': | |
'prefix': 'cache' | |
'body': '{{ cache for="${1:time}" }}\n\t${2:}\n{{ /cache }}$0' | |
'antlers-collection': | |
'prefix': 'collection' | |
'body': '{{ collection:${1:handle} }}\n\t${2:}\n{{ /collection:${1:handle} }}$0' | |
'antlers-collection-count': | |
'prefix': 'count' | |
'body': '{{ collection:count in="${1:handle}" }}$0' | |
'antlers-collection-next': | |
'prefix': 'next' | |
'body': '{{ collection:next in="${1:handle}" }}\n\t${2:}\n{{ /collection:next }}$0' | |
'antlers-collection-previous': | |
'prefix': 'previous' | |
'body': '{{ collection:previous in="${1:handle}" }}\n\t${2:}\n{{ /collection:previous }}$0' | |
'antlers-comment-comment': | |
'prefix': 'comment' | |
'body': '{{# ${0:comment} #}}' | |
'antlers-comment-//': | |
'prefix': '//' | |
'body': '{{# ${0:comment} #}}' | |
'antlers-dump': | |
'prefix': 'dump' | |
'body': '{{ dump }}$0' | |
'antlers-escaped-echo': | |
'prefix': 'echo' | |
'body': '{{ ${0:var} }}' | |
'antlers-unescaped-echo': | |
'prefix': 'uecho' | |
'body': '@{{ ${0:var} }}' | |
'antlers-foreach-foreach': | |
'prefix': 'foreach' | |
'body': '{{ foreach:${1:var} as="${2:array}|${3:element}" }}\n\t${4:}\n{{ /foreach:${1:var} }}$0' | |
'antlers-form-create': | |
'prefix': 'create' | |
'body': '{{ form:create in="${1:handle}" }}\n\t${2:}\n{{ /form:create }}$0' | |
'antlers-form-create-shorthand': | |
'prefix': 'form:' | |
'body': '{{ form:${1:handle} }}\n\t${2:}\n{{ /form:${1:handle} }}$0' | |
'antlers-form-errors': | |
'prefix': 'errors' | |
'body': '{{ form:errors }}\n\t${1:}\n{{ /form:errors }}$0' | |
'antlers-form-submission': | |
'prefix': 'submission' | |
'body': '{{ form:submission }}\n\t${1:}\n{{ /form:submission }}$0' | |
'antlers-form-submissions': | |
'prefix': 'submissions' | |
'body': '{{ form:submissions in="${1:handle}" }}\n\t${2:}\n{{ /form:submissions }}$0' | |
'antlers-form-set': | |
'prefix': 'set' | |
'body': '{{ form:set is="${1:handle}" }}\n\t${2:}\n{{ /form:set }}$0' | |
'antlers-get_content': | |
'prefix': 'get_content' | |
'body': '{{ get_content from="${1:handle}" }}\n\t${2:}\n{{ /get_content }}$0' | |
'antlers-get_files': | |
'prefix': 'get_files' | |
'body': '{{ get_files in="${1:path}" }}\n\t${2:}\n{{ /get_files }}$0' | |
'antlers-glide-src': | |
'prefix': 'glide' | |
'body': '{{ glide src="${1:path}" ${2:} }}$0' | |
'antlers-glide-variable': | |
'prefix': 'glide' | |
'body': '{{ glide:${1:variable} ${2:} }}$0' | |
'antlers-glide-variable-open': | |
'prefix': 'glide' | |
'body': '{{ glide:${1:variable} }}\n\t${2:}\n{{ /glide:${1:variable} }}$0' | |
'antlers-glide-batch': | |
'prefix': 'glide' | |
'body': '{{ glide:batch }}\n\t${2:}\n{{ /glide:batch }}$0' | |
'antlers-if_else-ife': | |
'prefix': 'ife' | |
'body': '{{ if ${1:condition} }}\n\t${2:}\n{{ else }}\n\t${3:}\n{{ /if }}$0' | |
'antlers-if_else-ifelse': | |
'prefix': 'ifelse' | |
'body': '{{ if ${1:condition} }}\n\t${2:}\n{{ else }}\n\t${3:}\n{{ /if }}$0' | |
'antlers-if': | |
'prefix': 'if' | |
'body': '{{ if ${1:condition} }}\n\t${2:}\n{{ /if }}$0' | |
'antlers-if_else-else': | |
'prefix': 'else' | |
'body': '{{ else }}$0' | |
'antlers-if_elseif-elseif': | |
'prefix': 'elseif' | |
'body': '{{ elseif ${1:condition} }}$0' | |
'antlers-if_elseif-elif': | |
'prefix': 'elif' | |
'body': '{{ elseif ${1:condition} }}$0' | |
'antlers-increment': | |
'prefix': 'increment' | |
'body': '{{ increment }}$0' | |
'antlers-increment-variable': | |
'prefix': 'again' | |
'body': '{{ increment:${1:variable} }}$0' | |
'antlers-locales': | |
'prefix': 'locales' | |
'body': '{{ locales }}\n\t${1:}\n{{ /locales }}$0' | |
'antlers-locales-variable': | |
'prefix': 'locales' | |
'body': '{{ locales:${1:locale} }}\n\t${2:}\n{{ /locales:${1:locale} }}$0' | |
'antlers-link': | |
'prefix': 'link' | |
'body': '{{ link to="${1:handle}" }}$0' | |
'antlers-link-absolute': | |
'prefix': 'linka' | |
'body': '{{ link to="${1:handle}" absolute="true" }}$0' | |
'antlers-loop': | |
'prefix': 'loop' | |
'body': '{{ loop times="${1:number}" }}\n\t${2:}\n{{ /loop }}$0' | |
'antlers-markdown': | |
'prefix': 'markdown' | |
'body': '{{ markdown }}\n\t${1:}\n{{ /markdown }}$0' | |
'antlers-markdown-indent': | |
'prefix': 'markdowni' | |
'body': '{{ markdown:indent }}\n\t${1:}\n{{ /markdown:indent }}$0' | |
'antlers-mix-mix': | |
'prefix': 'mix' | |
'body': '{{ mix src=\'${1:path}\' }}' | |
'antlers-nav-breadcrumbs': | |
'prefix': 'breadcrumbs' | |
'body': '{{ nav:breadcrumbs }}\n\t${1:}\n{{ /nav:breadcrumbs }}$0' | |
'antlers-oauth': | |
'prefix': 'oauth' | |
'body': '{{ oauth:${1:provider} }}' | |
'antlers-oauth-redirect': | |
'prefix': 'oauthr' | |
'body': '{{ oauth:${1:provider} redirect="${2:to}" }}' | |
'antlers-obfuscate': | |
'prefix': 'obfuscate' | |
'body': '{{ obfuscate }}\n\t${1:}\n{{ /obfuscate }}$0' | |
'antlers-parent': | |
'prefix': 'parent' | |
'body': '{{ parent }}$0' | |
'antlers-parent-open': | |
'prefix': 'parent' | |
'body': '{{ parent }}\n\t${1:}\n{{ /parent }}$0' | |
'antlers-partial': | |
'prefix': 'partial' | |
'body': '{{ partial:${1:view} }}' | |
'antlers-redirect': | |
'prefix': 'redirect' | |
'body': '{{ redirect to="${1:path}" }}$0' | |
'antlers-route': | |
'prefix': 'route' | |
'body': '{{ route:${1:name} }}' | |
'antlers-route-params': | |
'prefix': 'routep' | |
'body': '{{ partial:${1:view} :${2:param}="${3:value}" }}' | |
'antlers-search-results': | |
'prefix': 'search' | |
'body': '{{ search:results }}\n\t${1:}\n{{ /search:results }}$0' | |
'antlers-section-sec': | |
'prefix': 'sec' | |
'body': '{{ section:${1:name} }}\n\t${2:}\n{{ /section:${1:name} }}$0' | |
'antlers-section-section': | |
'prefix': 'section' | |
'body': '{{ section:${1:name} }}\n\t${2:}\n{{ /section:${1:name} }}$0' | |
'antlers-svg': | |
'prefix': 'svg' | |
'body': '{{ svg src="${1:path}" }}$0' | |
'antlers-user_can-can': | |
'prefix': 'can' | |
'body': '{{ user:can do="${1:ability}" }}\n\t${2:}\n{{ /user:can }}$0' | |
'antlers-user_in-in': | |
'prefix': 'in' | |
'body': '{{ user:in group="${1:group}" }}\n\t${2:}\n{{ /user:can }}$0' | |
'antlers-user_in-group': | |
'prefix': 'group' | |
'body': '{{ user:in group="${1:group}" }}\n\t${2:}\n{{ /user:can }}$0' | |
'antlers-user_is': | |
'prefix': 'is' | |
'body': '{{ user:is role="${1:role}" }}\n\t${2:}\n{{ /user:is }}$0' | |
'antlers-user_isnt': | |
'prefix': 'isnt' | |
'body': '{{ user:isnt role="${1:role}" }}\n\t${2:}\n{{ /user:isnt }}$0' | |
'antlers-yield-yield': | |
'prefix': 'yield' | |
'body': '{{ yield:${1:section} }}$0' | |
'.source.css': | |
'Tailwind @apply': | |
'prefix': '@apply' | |
'body': '@apply $1;' | |
'@apply': | |
'prefix': 'app' | |
'body': '@apply $1;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment