-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow non-templates as interpolations in Polymer.html (#5023)
* Disallow non-templates as interpolations in Polymer.html * Adds `Polymer.htmlLiteral` Allows composition of strings into html templates constructed with `Polymer.html`. This is useful for composing values into styles or other places where an html template would not compose. ``` const css = Polymer.htmlLiteral`background: red;` Polymer.html`<style>:host { ${css} }</style>` ``` * lint fix and update types * Review updates. * update types. * [ci-skip] Add comment about accepting htmlLiteral values. * Update types. * Add a `toString` for output from `Polymer.htmlLiteral` Simpler for debugging
- Loading branch information
1 parent
6fc285c
commit eeb7160
Showing
3 changed files
with
142 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters