-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathedge-mustache.sublime-completions
198 lines (198 loc) · 6.3 KB
/
edge-mustache.sublime-completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{
"scope": "text.html.edge source.js",
"completions":
[
{
"trigger": "props.toAttrs\tSerialize component props to HTML attributes",
"contents": "\\$props.toAttrs()"
},
{
"trigger": "props.merge\tMerge defaults and serialize props to HTML attributes",
"contents": "\\$props.merge([$1]).toAttrs()"
},
{
"trigger": "props.only\tSerialize selected component props to HTML attributes",
"contents": "\\$props.only([$1]).toAttrs()"
},
{
"trigger": "props.except\tSerialize selected component props to HTML attributes",
"contents": "\\$props.except([$1]).toAttrs()"
},
{
"trigger": "slots\tRender a slot",
"contents": "\\$slots.${1}"
},
{
"trigger": "filename\tPath to the template file",
"contents": "\\$filename"
},
{
"trigger": "state\tTemplate state object",
"contents": "state"
},
{
"trigger": "caller.filename\tComponent caller filename",
"contents": "\\$caller.filename"
},
{
"trigger": "caller.line\tComponent caller line number",
"contents": "\\$caller.line"
},
{
"trigger": "caller.col\tComponent caller column number",
"contents": "\\$caller.col"
},
{
"trigger": "nl2br\tConvert new line to br tags",
"contents": "nl2br(e(${1:'${2:contents}'}))"
},
{
"trigger": "inspect\tInspect value by pretty printing it",
"contents": "inspect(${1:value})"
},
{
"trigger": "truncate\tTruncate string after given characters count",
"contents": "truncate(${1:value}, ${2:100})"
},
{
"trigger": "excerpt\tGenerate plain text excerpt and truncate after given characters count",
"contents": "excerpt(${1:value}, ${2:100})"
},
{
"trigger": "escape\tEscape HTML markup",
"contents": "html.escape(${1:'${2:markup}'})"
},
{
"trigger": "safe\tRender HTML markup without escaping it",
"contents": "html.safe(${1:'${2: markup}'})"
},
{
"trigger": "classNames\tGenerate HTML class string from an array of values",
"contents": "html.classNames(${1:[${2: markup}]})"
},
{
"trigger": "attrs\tGenerate HTML attributes from an object",
"contents": "html.attrs(${1:{${2: markup}}})"
},
{
"trigger": "stringify\tStringify a value for serialization",
"contents": "js.stringify(${1})"
},
{
"trigger": "camelCase\tConvert a string to camelcase",
"contents": "camelCase(${1:'${2:value}'})"
},
{
"trigger": "snakeCase\tConvert a string to snakeCase",
"contents": "snakeCase(${1:'${2:value}'})"
},
{
"trigger": "dashCase\tConvert a string to dashCase",
"contents": "dashCase(${1:'${2:value}'})"
},
{
"trigger": "pascalCase\tConvert a string to pascalCase",
"contents": "pascalCase(${1:'${2:value}'})"
},
{
"trigger": "capitalCase\tConvert a string to capitalCase",
"contents": "capitalCase(${1:'${2:value}'})"
},
{
"trigger": "sentenceCase\tConvert a string to sentenceCase",
"contents": "sentenceCase(${1:'${2:value}'})"
},
{
"trigger": "dotCase\tConvert a string to dotCase",
"contents": "dotCase(${1:'${2:value}'})"
},
{
"trigger": "noCase\tRemove all sort of casing from a string",
"contents": "noCase(${1:'${2:value}'})"
},
{
"trigger": "titleCase\tConvert a string to titleCase",
"contents": "titleCase(${1:'${2:value}'})"
},
{
"trigger": "pluralize\tPluralize a word",
"contents": "pluralize(${1:value}${2:, optionalCount})"
},
{
"trigger": "sentence\tConvert an array to a sentence",
"contents": "sentence([${1:'car'}, ${2: 'truck'}, ${3: 'van'}], { separator: ', ', lastSeparator: ', or ' })"
},
{
"trigger": "prettyMs\tPretty print milliseconds to human readable string",
"contents": "prettyMs(${1:60000})"
},
{
"trigger": "toMs\tConvert human readable expression to milliseconds",
"contents": "toMs(${1:'1min'})"
},
{
"trigger": "prettyBytes\tPretty print bytes to human readable string",
"contents": "prettyBytes(${1:1024})"
},
{
"trigger": "toBytes\tConvert human readable expression to bytes",
"contents": "toBytes(${1:'1MB'})"
},
{
"trigger": "ordinal\tOrdinalize a string or a number value",
"contents": "ordinal(${1:value})"
},
{
"trigger": "route\tMake URL for a route",
"contents": "route('${1:routeName}', ${2:[args]})"
},
{
"trigger": "signedRoute\tMake signed URL for a route",
"contents": "signedRoute('${1:routeName}', ${2:[args]})"
},
{
"trigger": "flashMessages.has\tCheck if a flash message exists",
"contents": "flashMessages.has('${1:${2:key}}')"
},
{
"trigger": "flashMessages.get\tGet flash message value",
"contents": "flashMessages.get('${1:${2:key}}', ${3:'${4:defaultValue}'})"
},
{
"trigger": "flashMessages.all\tInspect all messages",
"contents": "inspect(flashMessages.all())"
},
{
"trigger": "asset\tGet path to a frontend asset",
"contents": "asset('${1:filePath}')"
},
{
"trigger": "csrfField\tAdd csrfField input field to form",
"contents": "csrfField()"
},
{
"trigger": "cspNonce\tUse csp nonce on script tag",
"contents": "cspNonce"
},
{
"trigger": "auth.isAuthenticated\tFind if user is authenticated during the current request",
"contents": "auth.isAuthenticated"
},
{
"trigger": "auth.user\tGet auth user",
"contents": "auth.user"
},
{
"trigger": "app\tReference to application instance",
"contents": "app"
},
{
"trigger": "config\tGet config value",
"contents": "config('${1:key}')"
},
{
"trigger": "t\tTranslate message using i18n",
"contents": "t('${1:key}', ${2:{args}})"
}
]
}