Custom templates

Overview

Create a template for a block or a pipeline that can be reused throughout your project.

This feature is important because it’ll reduce the amount of code writing you and your team have to do to get started on a pipeline or to create a new block.

For example, let’s say you have a template for all ETL pipelines in your project. Instead of starting from scratch each time, your teammates can create a new pipeline from the template you created.


Block templates

Browse block templates

  1. Go to http://localhost:6789/templates
  2. Click the tab labeled Blocks.

Create a block template

  1. Go to http://localhost:6789/templates
  2. Click the tab labeled Blocks.
  3. Click the button labeled + New block template.
  4. Fill in the required fields: Template UUID, Block type, and Language.
  5. Click the button labeled Create new template.
  6. Once saved, write in the code for the template.

Add block to pipeline using template

  1. While editing a pipeline, add a new block.
  2. Before selecting a template, choose the option labeled Browse templates.
  3. A modal will appear with all the custom block templates to choose from.
  4. Select a custom block template.

Pipeline templates

Browse pipeline templates

  1. Go to http://localhost:6789/templates
  2. Click the tab labeled Pipelines.

Create a pipeline template

  1. Go to http://localhost:6789/pipelines
  2. Right click on a row for the pipeline you want to use as the template.
  3. In the right click menu, select the option labeled Create template.
  4. Fill in the required fields: Template UUID
  5. Click the button labeled Create new template.
  6. You can optionally click the tab labeled Document and fill in the template name and description.

New pipeline from a template

  1. Go to http://localhost:6789/pipelines
  2. Click the button labeled + New.
  3. In the dropdown menu, select the option labeled From a template.
  4. A modal will appear with all the custom pipeline templates to choose from.
  5. Select a custom pipeline template.

Guides

Block templates

Pipeline templates