Debian Codegraph @

doc/_includes/examples/top-level-ext.jsonnet

raw
1 local lib = import 'library-ext.libsonnet';
2 {
3 [std.extVar('prefix') + 'Pina Colada']: {
4 ingredients: [
5 { kind: 'Rum', qty: 3 },
6 { kind: 'Pineapple Juice', qty: 6 },
7 { kind: 'Coconut Cream', qty: 2 },
8 { kind: 'Ice', qty: 12 },
9 ],
10 garnish: 'Pineapple slice',
11 served: 'Frozen',
12 },
13
14 [if std.extVar('brunch') then
15 std.extVar('prefix') + 'Bloody Mary'
16 ]: {
17 ingredients: [
18 { kind: 'Vodka', qty: 1.5 },
19 { kind: 'Tomato Juice', qty: 3 },
20 { kind: 'Lemon Juice', qty: 1.5 },
21 { kind: 'Worcestershire', qty: 0.25 },
22 { kind: 'Tobasco Sauce', qty: 0.15 },
23 ],
24 garnish: 'Celery salt & pepper',
25 served: 'Tall',
26 },
27
28 [std.extVar('prefix') + 'Mimosa']:
29 lib.Mimosa,
30 }