Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone block variables #817

Merged
merged 3 commits into from Dec 27, 2018
Merged

Clone block variables #817

merged 3 commits into from Dec 27, 2018

Conversation

JPBetley
Copy link
Contributor

Uses the same functionality from cloneRow to index variables inside blocks when using the cloneBlock function.

Before, variables inside cloned blocks would result in the same variable name used multiple times:

Template: cloneBlock('CLONE', 3)
${CLONE}
${variable}
${/CLONE}

Result:
${variable}
${variable}
${variable}

Now, in the same style of cloneRow, the variables are indexed:

Template: cloneBlock('CLONE', 3)
${CLONE}
${variable}
${/CLONE}

Result:
${variable#1}
${variable#2}
${variable#3}

Use the same functionality from cloneRow to index variables inside
cloned block sections
@troosan
Copy link
Contributor

troosan commented Dec 26, 2018

duplicate of #459, but I'll merge this one as #459 is too old to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

2 participants