File tree Expand file tree Collapse file tree 12 files changed +4609
-0
lines changed Expand file tree Collapse file tree 12 files changed +4609
-0
lines changed Original file line number Diff line number Diff line change
1
+ # handlebars
2
+ ## ember
3
+ ### ` input `
4
+ ** Prefix:** ` input `
5
+
6
+ ** Description** :
7
+ ```
8
+ The {{input}} helper lets you create an HTML <input /> component.
9
+ ```
10
+ ** Generated code** :
11
+ ``` js
12
+ < Input @value= / >
13
+ ```
14
+ ### ` textarea `
15
+ ** Prefix:** ` textarea `
16
+
17
+ ** Description** :
18
+ ```
19
+ The {{textarea}} helper lets you create an HTML <textarea /> component.
20
+ ```
21
+ ** Generated code** :
22
+ ``` js
23
+ < Textarea @value= / >
24
+ ```
25
+ ### ` link-to `
26
+ ** Prefix:** ` linkto `
27
+
28
+ ** Description** :
29
+ ```
30
+ The {{link-to}} component renders a link to the supplied routeName.
31
+ ```
32
+ ** Generated code** :
33
+ ``` js
34
+ < LinkTo @route= " " >
35
+
36
+ < / LinkTo>
37
+ ```
Original file line number Diff line number Diff line change
1
+ # handlebars
2
+ ## ember
3
+ ### ` #each `
4
+ ** Prefix:** ` each `
5
+
6
+ ** Description** :
7
+ ```
8
+ The {{#each}} helper loops over elements in a collection.
9
+ ```
10
+ ** Generated code** :
11
+ ``` js
12
+ {{#each as || }}
13
+
14
+ {{/ each}}
15
+ ```
16
+ ### ` #each-in `
17
+ ** Prefix:** ` each-in `
18
+
19
+ ** Description** :
20
+ ```
21
+ The {{each-in}} helper loops over properties on an object.
22
+ ```
23
+ ** Generated code** :
24
+ ``` js
25
+ {{#each- in as | | }}
26
+
27
+ {{/ each- in }}
28
+ ```
29
+ ### ` #each/else `
30
+ ** Prefix:** ` eachelse `
31
+
32
+ ** Description** :
33
+ ```
34
+ The {{#each}} helper loops over elements in a collection.
35
+ ```
36
+ ** Generated code** :
37
+ ``` js
38
+ {{#each as || }}
39
+
40
+ {{else }}
41
+
42
+ {{/ each}}
43
+ ```
44
+ ### ` #if hasBlock `
45
+ ** Prefix:** ` ifhasBlock `
46
+
47
+ ** Description** :
48
+ ```
49
+ Indicates if the component was invoked with a block.
50
+ ```
51
+ ** Generated code** :
52
+ ``` js
53
+ {{#if (hasBlock)}}
54
+
55
+ {{/ if }}
56
+ ```
57
+ ### ` #if hasBlockParams `
58
+ ** Prefix:** ` ifhasBlockParams `
59
+
60
+ ** Description** :
61
+ ```
62
+ Indicates if the component was invoked with block params.
63
+ ```
64
+ ** Generated code** :
65
+ ``` js
66
+ {{#if (hasBlockParams)}}
67
+
68
+ {{/ if }}
69
+ ```
70
+ ### ` if `
71
+ ** Prefix:** ` if `
72
+
73
+ ** Description** :
74
+ ```
75
+ The if helper allows you to conditionally render one of two branches, depending on the 'truthiness' of a property.
76
+ ```
77
+ ** Generated code** :
78
+ ``` js
79
+ {{if }}
80
+ ```
81
+ ### ` #if `
82
+ ** Prefix:** ` if `
83
+
84
+ ** Description** :
85
+ ```
86
+ The if helper allows you to conditionally render one of two branches, depending on the 'truthiness' of a property.
87
+ ```
88
+ ** Generated code** :
89
+ ``` js
90
+ {{#if }}
91
+
92
+ {{/ if }}
93
+ ```
94
+ ### ` #if/else `
95
+ ** Prefix:** ` if `
96
+
97
+ ** Description** :
98
+ ```
99
+ The if helper allows you to conditionally render one of two branches, depending on the 'truthiness' of a property.
100
+ ```
101
+ ** Generated code** :
102
+ ``` js
103
+ {{#if }}
104
+
105
+ {{else }}
106
+
107
+ {{/ if }}
108
+ ```
109
+ ### ` unless `
110
+ ** Prefix:** ` unless `
111
+
112
+ ** Description** :
113
+ ```
114
+ unless
115
+ ```
116
+ ** Generated code** :
117
+ ``` js
118
+ {{unless }}
119
+ ```
120
+ ### ` else `
121
+ ** Prefix:** ` else `
122
+
123
+ ** Description** :
124
+ ```
125
+ else
126
+ ```
127
+ ** Generated code** :
128
+ ``` js
129
+ {{else }}
130
+ ```
131
+ ### ` #unless `
132
+ ** Prefix:** ` unless `
133
+
134
+ ** Description** :
135
+ ```
136
+ The unless helper is the inverse of the if helper. It displays if a value is falsey ("not true" or "is false").
137
+ ```
138
+ ** Generated code** :
139
+ ``` js
140
+ {{#unless }}
141
+
142
+ {{/ unless}}
143
+ ```
144
+ ### ` #unless/else `
145
+ ** Prefix:** ` unless `
146
+
147
+ ** Description** :
148
+ ```
149
+ The unless helper is the inverse of the if helper. It displays if a value is falsey ("not true" or "is false").
150
+ ```
151
+ ** Generated code** :
152
+ ``` js
153
+ {{#unless }}
154
+
155
+ {{else }}
156
+
157
+ {{/ unless}}
158
+ ```
159
+ ### ` with `
160
+ ** Prefix:** ` with `
161
+
162
+ ** Description** :
163
+ ```
164
+ with
165
+ ```
166
+ ** Generated code** :
167
+ ``` js
168
+ {{#with as || }}
169
+
170
+ {{/ with }}
171
+ ```
172
+ ### ` log `
173
+ ** Prefix:** ` log `
174
+
175
+ ** Description** :
176
+ ```
177
+ log allows you to output the value of variables in the current rendering context. log also accepts primitive types such as strings or numbers.
178
+ ```
179
+ ** Generated code** :
180
+ ``` js
181
+ {{log }}
182
+ ```
183
+ ### ` yield `
184
+ ** Prefix:** ` yield `
185
+
186
+ ** Description** :
187
+ ```
188
+ {{yield}} denotes an area of a template that will be rendered inside of another template.
189
+ ```
190
+ ** Generated code** :
191
+ ``` js
192
+ {{yield }}
193
+ ```
You can’t perform that action at this time.
0 commit comments