Daniel Busłowicz
Daniel Busłowicz
1. Detecting what is expression and what is pure binding wouldn't be that difficult. TS Compiler API would help us here. 2. :+1: 3. I wasn't talking about modifying the...
Regarding expressions. It's true, providing additional layer of abstraction may in the future conflict with original Polymer. However, if they do provide such feature (highly unlikely, considering the #UseThePlatform motto),...
We could always decide on `[[[ ]]]` syntax, which probably wont be used in Polymer itself. As for output, I was more thinking of a 3rd target, so we could...
Back to this topic. With `lit-html` coming out soon, I think it would be reasonable to adopt its syntax together with directives etc. What do you guys think?
Not really, no. It would only introduce the syntax, TWC would still analyze that and output whatever we want. It would only require types for directives. Also this has 1...
I was thinking more about the `render` method for the component, but the above solution looks not bad. I would only change it to ``` @template((this: LitTwcElement) => html`${this.title}`) class...
Hmm, nope not possible, never played with lazy loading :(. Any idea how to mark import as lazy in TypeScript? I mean what syntax should we use?
How about this: ```TypeScript import { CustomElement } from 'twc/polymer'; @CustomElement() class MyElement extends Polymer.Element { // importing and returning the modules async importGroupA() { return { ...await import('bower:paper-button/paper-button.html'), ...await...
What about multiple mixins per file? Should we maybe instead of `Module` place a source file name or path?
This could be confused to multiple files output. What do you think about something more like this? ``` MyMixin1, MyMixin2, MyMixin3 saved to `mixins-file.html` (generated in 149ms) ```