Skip to content

Commit 74fba36

Browse files
authored
Merge pull request liferay#6 from ethib137/docLinks
Include links to official soy docs.
2 parents 9df4fad + 9ce28f3 commit 74fba36

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ A collection of cool hidden and not so hidden features, to be used as a quick re
1111
* [Namespace](#namespace)
1212
* [Template](#template)
1313
* [Parameters](#parameters)
14+
* [Parameter Types](#parameter-types)
1415
* [Call](#call)
1516
* [Variables](#variables)
1617
* [Conditionals](#conditionals)
@@ -24,6 +25,8 @@ A collection of cool hidden and not so hidden features, to be used as a quick re
2425
{namespace foo}
2526
```
2627

28+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#namespace "Namespace")
29+
2730
## Template
2831

2932
```
@@ -35,6 +38,8 @@ A collection of cool hidden and not so hidden features, to be used as a quick re
3538
{/template}
3639
```
3740

41+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#template "Template")
42+
3843
## Parameters
3944

4045
###### required
@@ -63,6 +68,10 @@ A collection of cool hidden and not so hidden features, to be used as a quick re
6368
{/template}
6469
```
6570

71+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#param "Parameters")
72+
73+
## Parameter Types
74+
6675
###### primitive types
6776

6877
```
@@ -91,6 +100,8 @@ map<KeyType, ValueType> // Map
91100
Type1|Type2 // Union
92101
```
93102

103+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#parameter-type-expressions "Parameter Types")
104+
94105
## Call
95106

96107
```
@@ -110,6 +121,8 @@ Type1|Type2 // Union
110121
{call .hello data="all" /}
111122
```
112123

124+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#call "Call")
125+
113126
## Variables
114127

115128
```
@@ -137,6 +150,8 @@ Type1|Type2 // Union
137150
{/let}
138151
```
139152

153+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#let "Let")
154+
140155
## Conditionals
141156

142157
###### if
@@ -183,6 +198,8 @@ Type1|Type2 // Union
183198
{/if}
184199
```
185200

201+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#if "If / Else / ElseIf")
202+
186203
###### switch
187204

188205
```
@@ -196,6 +213,8 @@ Type1|Type2 // Union
196213
{/switch}
197214
```
198215

216+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#switch "Switch")
217+
199218
###### elvis
200219

201220
```
@@ -208,6 +227,8 @@ Type1|Type2 // Union
208227
{$name ? 'Hello {$name}' : 'Hello there'}
209228
```
210229

230+
> [See Docs](https://developers.google.com/closure/templates/docs/concepts#operators "Operators")
231+
211232
## Loops
212233

213234
###### foreach
@@ -228,6 +249,8 @@ Type1|Type2 // Union
228249
{/foreach}
229250
```
230251

252+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#foreach "Foreach / Ifempty")
253+
231254
## Special Characters
232255

233256
###### literal
@@ -242,6 +265,8 @@ Type1|Type2 // Union
242265
{/literal}
243266
```
244267

268+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#literal "Literal")
269+
245270
###### miscellaneous
246271

247272
```
@@ -254,6 +279,8 @@ Type1|Type2 // Union
254279
{rb} // right brace
255280
```
256281

282+
> [See Docs](https://developers.google.com/closure/templates/docs/commands#specialcharacters "Special Characters")
283+
257284
## Functions
258285

259286
###### any
@@ -299,3 +326,5 @@ Type1|Type2 // Union
299326
{augmentMap(map1, map2)}
300327
{keys(map)}
301328
```
329+
330+
> [See Docs](https://developers.google.com/closure/templates/docs/functions "Functions")

0 commit comments

Comments
 (0)