| 1 |
/* |
| 2 |
Copyright 2015 Google Inc. All rights reserved. |
| 3 |
|
| 4 |
Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 |
you may not use this file except in compliance with the License. |
| 6 |
You may obtain a copy of the License at |
| 7 |
|
| 8 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 9 |
|
| 10 |
Unless required by applicable law or agreed to in writing, software |
| 11 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 12 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 |
See the License for the specific language governing permissions and |
| 14 |
limitations under the License. |
| 15 |
*/ |
| 16 |
|
| 17 |
// A regular definition. |
| 18 |
local house_rum = 'Banks Rum'; |
| 19 |
|
| 20 |
{ |
| 21 |
// A definition next to fields. |
| 22 |
local pour = 1.5, |
| 23 |
|
| 24 |
Daiquiri: { |
| 25 |
ingredients: [ |
| 26 |
{ kind: house_rum, qty: pour }, |
| 27 |
{ kind: 'Lime', qty: 1 }, |
| 28 |
{ kind: 'Simple Syrup', qty: 0.5 }, |
| 29 |
], |
| 30 |
served: 'Straight Up', |
| 31 |
}, |
| 32 |
Mojito: { |
| 33 |
ingredients: [ |
| 34 |
{ |
| 35 |
kind: 'Mint', |
| 36 |
action: 'muddle', |
| 37 |
qty: 6, |
| 38 |
unit: 'leaves', |
| 39 |
}, |
| 40 |
{ kind: house_rum, qty: pour }, |
| 41 |
{ kind: 'Lime', qty: 0.5 }, |
| 42 |
{ kind: 'Simple Syrup', qty: 0.5 }, |
| 43 |
{ kind: 'Soda', qty: 3 }, |
| 44 |
], |
| 45 |
garnish: 'Lime wedge', |
| 46 |
served: 'Over crushed ice', |
| 47 |
}, |
| 48 |
} |