Tag Link | [Run_Children] | Category | Custom Tag |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 6.0 |
Change | Unchanged | Data Source | Any |
Output Type | String | Security | Tag |
Implementation | Internal | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0 |
[Run_Children] processes the contents of a custom container tag and returns the results. This tag can only be used within a custom tag for which the
If
[Define_Tag: Tag Name,
[Run_Children]
[/Define_Tag]
[Define_Tag: Tag Name,
[Run_Children]
[/Define_Tag]
No Parameters Required.
To create a custom container tag:
Use the [Define_Tag] ... [/Define_Tag] and [Run_Children] tags. The following example creates a simple container tag [Bold] ... [/Bold] that surrounds its contents with HTML bold <b> ... </b> tags. The [Run_Children] tag returns the contents of the container tag when called.
Note - Container tags must be defined within the Lasso Startup folder. They cannot be defined and then used later in the same format file.
[Define_Tag: 'Bold'][Return: '<b>' + (Run_Children) + '</b>'][/Define_Tag]
[Bold]Hello![/Bold]
<b>Hello!</b>