Hello,
How can I scope a template replacement, let's say replaceVariableByText, to only operate within a specific block? Or even scope it such that it won't operate within a block?
I'm familiar with the approach of cloning a block N times and then iterating over the records with firstMatch true to fill in each block, but in this case there are duplicate variables in the block. Our templates are user-configured and we can't make many assumptions about the variables.
It would be great if there were something like replaceVariableByText(block_name, variables, options).
Any thoughts on how I might accomplish this?
We have the premium license so any features at that level are available to us.
Example
User Pet List
name: $NAME$
username: $USERNAME$
Puppies
$BLOCK_PUPPIES$
[pic]
$NAME$
Stats
$NAME$
$AGE$
$WEIGHT$
Favorite foods
$BLOCK_PUPPY_FAVORITE_FOODS$
[pic]
$FOOD_NAME$
$PRICE$
$BLOCK_PUPPY_FAVORITE_FOODS$
$BLOCK_PUPPIES$