Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Reusable Snippets is an advanced concept introduced to the Strategy Designer in the Caribou Lou release (v14). It allows users to extract a group of blocks into what is called a snippet, which can then be reused across multiple strategies while being maintained in one central location. This concept is quite similar to a function in programming.

In this section:

Table of Contents
stylenone

Creating a snippet

There are three ways to create a snippet:

  • Click the Add button in the Snippets tab

  • Import a Snippet from JSON

  • Extract a group of blocks from a Strategy to a Snippet

Add button

When you click the Add button in the Snippets tab, a new, empty snippet is created in the draft state.

image-20250117-172200.pngImage Added

Extract Block to Snippet

When designing a strategy, you can right-click on a block and select "Extract Block to Snippet." This will create a draft snippet containing the selected block, and the block in the strategy will be replaced by the newly created snippet.

See the following images:

image-20250117-173310.pngImage Added
image-20250117-173501.pngImage Added
image-20250117-173506.pngImage Added

Import

Anatomy of the Snippet block

image-20250117-170923.pngImage Added