Introduce scoped ajax placeholder variables, e.g. ‘placeholder ph { }’ declares ‘ph’ in the template.
They are scoped by template definition and template for loops.
Its value is of String-compatible type ‘Placeholder’.
The value is unique and deterministic based on template id.
This enables safe use of placeholders inside repeated templates and for loops without explicit placeholder name construction.

Initial commit:

The next step is some refactoring in the analysis of template variables to correctly declare the placeholders. Currently the placeholder variable needs to be declared before use, which is too limiting as only a ‘for’ loop is a meaningful scope. The position of the placeholder should be flexible within that scope.

Submitted by Danny Groenewegen on 8 August 2014 at 18:13

On 22 August 2014 at 14:56 Danny Groenewegen commented:

fixed scoping for placeholder names so that you can refer to the name above its definition and ‘for’ scopes names

On 22 August 2014 at 14:56 Danny Groenewegen closed this issue.

Log in to post comments