Skip to content

Code Generator

The Code Generator screen is where everything comes together. This is where ADL takes your metadata, applies your templates, and writes the generated output to files in your project folder.

Code Generator

Click the generate button and ADL will process every template mapping in your project:

  1. For each data object with a template mapping, ADL reads the metadata.
  2. It applies the mapped template, filling in Handlebars expressions with real values.
  3. The result is written as a file to your output folder.

One mapping = one output file. So if you have 50 data objects each mapped to a template, you’ll get 50 generated files.

After generation, you can see which files were created and check for any issues. The output files land in your project folder, ready to be reviewed, committed, and deployed.

Here’s a typical workflow:

  1. Set up your metadata — Define your connections, data objects, and mappings.
  2. Choose your templates — Pick from the built-in templates or create your own on the Templates screen.
  3. Create template mappings — Link each data object to the templates that should generate output for it.
  4. Preview first — Use the Code Preview to check individual outputs before generating everything.
  5. Generate — Come to this screen and generate all output in one go.
  6. Review and deploy — Check the generated files, commit them to your repository, and deploy through your CI/CD pipeline.
  • Preview before generating — Use the Code Preview screen to spot-check individual outputs before running a full generation.
  • Check your template mappings — If a data object doesn’t have a template mapping, no output will be generated for it. Make sure everything is mapped.
  • Regenerate freely — Generation overwrites previous output files, so you can regenerate as often as you like as you refine your metadata and templates.