Debian Codegraph @

doc/_includes/examples/references.jsonnet

raw
1 {
2 'Tom Collins': {
3 ingredients: [
4 { kind: "Farmer's Gin", qty: 1.5 },
5 { kind: 'Lemon', qty: 1 },
6 { kind: 'Simple Syrup', qty: 0.5 },
7 { kind: 'Soda', qty: 2 },
8 { kind: 'Angostura', qty: 'dash' },
9 ],
10 garnish: 'Maraschino Cherry',
11 served: 'Tall',
12 },
13 Martini: {
14 ingredients: [
15 {
16 // Use the same gin as the Tom Collins.
17 kind:
18 $['Tom Collins'].ingredients[0].kind,
19 qty: 2,
20 },
21 { kind: 'Dry White Vermouth', qty: 1 },
22 ],
23 garnish: 'Olive',
24 served: 'Straight Up',
25 },
26 // Create an alias.
27 'Gin Martini': self.Martini,
28 }