Components

Lono has a few main conceptual components:

  1. Template Definitions
  2. Template Views
  3. Shared Variables
  4. Param Files
  5. Helpers

Template Definitions

The template definitions are defined in the app/definitions folder. Template definitions are:

  1. where you specify the template source to use
  2. what variables to make available for those specific templates
  3. where the output template files should be written to

The template definition component is covered in detailed at the Template Definitions docs.

Template Views

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.

Shared Variables

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

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

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.

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!