Dynamic Repeated Use of Same Snippet With Different Variables

Awesome Sean! Nice use of {repeat} to create a separate scope.

It's not available yet, but long term we expect your use case to be solved well by command packs (see, February Development Update). These are in an early stage currently and for now TB users can use but not develop them. Longer term though we want to open them up command pack development to everyone.

Technically, command pack commands are like a more powerful {import}. Each command pack command is just a snippet but it has its own scope and there is a well-defined interface to configure them and pass variables between the command and the enclosing snippet.

2 Likes