-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Milestone
Description
Basic Support
For basic polymer 3 support - the relationship between JS and HTML will probably be reversed. Instead of HTML importing JS, the JS file will import HTML:
// processed by html-loader
// what to do with styles?
import myElementTemplate from './my-element.html';
class MyElement extends Polymer.Element {
static get is() { return 'my-element'; }
static get template() { return myElementTemplate; }
}
customElements.define(MyElement.is, MyElement);This relationship should not require a specialized loader and should just work with WebPack.
LitHtml in Separate File
For better static analysis and renaming support (especially with Closure-compiler), can a standard Polymer template be converted to Lit syntax by a loader?
This would continue to allow HTML authoring, but completely remove the need for projects like polymer-rename.
One of the shortcomings would be the apparent loss of the path-based change notification. This merits further investigation.
robotgryphon, jordanaustin, thescientist13, elf-pavlik, BorntraegerMarc and 7 more
Metadata
Metadata
Assignees
Labels
No labels