Debian Codegraph @

doc/_includes/examples/syntax.jsonnet

raw
1 /* A C-style comment. */
2 # A Python-style comment.
3 {
4 cocktails: {
5 // Ingredient quantities are in fl oz.
6 'Tom Collins': {
7 ingredients: [
8 { kind: "Farmer's Gin", qty: 1.5 },
9 { kind: 'Lemon', qty: 1 },
10 { kind: 'Simple Syrup', qty: 0.5 },
11 { kind: 'Soda', qty: 2 },
12 { kind: 'Angostura', qty: 'dash' },
13 ],
14 garnish: 'Maraschino Cherry',
15 served: 'Tall',
16 description: |||
17 The Tom Collins is essentially gin and
18 lemonade. The bitters add complexity.
19 |||,
20 },
21 Manhattan: {
22 ingredients: [
23 { kind: 'Rye', qty: 2.5 },
24 { kind: 'Sweet Red Vermouth', qty: 1 },
25 { kind: 'Angostura', qty: 'dash' },
26 ],
27 garnish: 'Maraschino Cherry',
28 served: 'Straight Up',
29 description: @'A clear \ red drink.',
30 },
31 },
32 }