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

Provide hooks to process custom template annotations #3369

Closed
sorvell opened this issue Feb 4, 2016 · 2 comments
Closed

Provide hooks to process custom template annotations #3369

sorvell opened this issue Feb 4, 2016 · 2 comments

Comments

@sorvell
Copy link
Contributor

sorvell commented Feb 4, 2016

We've gotten a number of PR's/issues from users asking for additional sugar around bindings and events in templates. We have a strong desire to keep Polymer's basic sugaring here as simple as possible and thus are not inclined to merge many of these changes.

However, we definitely do want to encourage users to easily add sugar they find useful. Then, based on community feedback we may decide to roll some of these changes into Polymer over time. Right now hooking into the template annotation and effect generation process is not well exposed. We should fix this to free our users to create awesomeness!

@MeTaNoV
Copy link

MeTaNoV commented Feb 5, 2016

/sub

@kevinpschaaf
Copy link
Member

Fixed via #4510 and #4432.

The template parsing API provides overridable points to add parsing information to related to either nodes or templates, and the binding API allows for parsing and evaluating custom binding syntax. Finally, the template stamping API now provides the ability to parse and stamp bound templates (with any parsing/binding customization implemented via overrides above) at runtime.

See the new property-effects-template.html tests for examples on how to use these API's.

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

No branches or pull requests

5 participants