Note that some of the source code is truncated to keep the explanation concise. In this example, the source is set as example. This tells lono to use the template source found at source/example.yml. The .yml extension is inferred automatically.

The variables to use are: app, instance_type and elb. These variables will be available to the source/example.yml template. These variables are only available specifically to the template source, whereas shared variables are available globally to all templates.

Lastly, the output name specified is example-stack. This tells lono to generate the output template to output/example-stack.yml. The .yml extension is inferred automatically.

When lono generate runs, lono uses the information in app/definitions/base.rb and app/templates/example.yml to generate the template to output/templates/example.yml.