Lono has a few main conceptual components:
- Template Definitions
- Template Views
- Shared Variables
- Param Files
The template definitions are defined in the
app/definitions folder. Template definitions are:
- where you specify the template source to use
- what variables to make available for those specific templates
- where the output template files should be written to
The template definition component is covered in detailed at the Template Definitions docs.
Template views are ERB templates that are put together to build the CloudFormation templates. The template views are defined in the
templates folder. Variable substitution and partial rendering are both supported and provide a powerful way to build templates. The template view is covered more detail in the Template Definitions docs. Template view helpers are also covered in the Template Helpers docs.
Template shared variables are available to all template definition config blocks, template views, and parameters. The variables are defined in the
config/variables folder. The variable configuration component is covered in detailed at the Shared Variables docs.
Param files provide a simple way of building parameters for CloudFormation templates. The param files use a simple
key=value format like env files. The params are defined in the
params folder. More information on param files is available on the Params docs.
Helpers are methods that help with the template view processing. Lono comes with several built-in helper methods. Lono also supports user-defined custom helper methods. With custom helper methods you can define your own helpers to help with the template view processing. More information on custom helpers is available in the Custom Helpers docs.
Pro tip: Use the <- and -> arrow keys to move back and forward.