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

Fix problems with dynamic templates and ids #6

Open
avescodes opened this issue Feb 14, 2014 · 2 comments
Open

Fix problems with dynamic templates and ids #6

avescodes opened this issue Feb 14, 2014 · 2 comments
Labels

Comments

@avescodes
Copy link

Dynamic templates automatically generate ids for nodes. It uses these generated ids to later update nodes. This is a problem when you want to have a dynamically updated id.

Dynamic templates allow you to specify fields in the template that should be static. These field can only be set once when the template is first added to the DOM. Id fields can be marked as static and set in the this way.

The problem is that a node with a static id field cannot have any other dynamic fields. This is because the id that is set statically is not known at the time when the mapping from ids to fields is created.

We need to allow ids to be added statically but also allow other fields for the same node to be dynamically set.

The starting point for this feature will likely revolve around changing append-field-ids to append to a new attribute (and not the existing fields) one.

@solussd
Copy link
Member

solussd commented Feb 14, 2014

hm, this issue should have been closed anyway.

@avescodes
Copy link
Author

Should I close it?

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

No branches or pull requests

2 participants