-
Notifications
You must be signed in to change notification settings - Fork 561
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
HTML output is in a .js file #476
Comments
@PatrickJS Do you have any thoughts on this from your work on the HTML generator? It might be as simple as adding the right extension here for
|
Ive been focusing on webcomponent only. Html output needs some work. It's a little bit confusing what html output should be. Because i's not webcomponent it does make sense to keep them .html files but they're not exactly js components. I guess we could make our own component pattern too |
fixes BuilderIO#473 fixes BuilderIO#476 fixes BuilderIO#499
Sure, my bug report was only at a initial, highly surface level. That the contents of the file should match the extension. For the real question of what the output should be, does anyone know what the output looks like for existing, already popular component sets packaged as web components? I'm just catching up on email on the weekend as I write this, otherwise I would go research right now... |
@samijaber @steve8708 what is the expected html output? Is it the same thing as webcomponent just with no custom elements? |
fixes BuilderIO#473 fixes BuilderIO#476 fixes BuilderIO#499
yeah exactly, the initial thinking was this is useful for very simple things. so can support basic HTML output, event listeners, data bindings. so is useful for codegen for things like Builder. not necessarily sure how it could or ever would child components tho, that is the main known constraint right now |
Scope
Describe the bug
The html output target lands in a file with .js extension.
To Reproduce
Then look at
packages/e2e-app/output/html/src/components/my-component.js
Expected behavior
HTML output in a
.html
file, or perhaps consider some other extension indicating it is meant to be included in other HTML? (.inc
?), But not.js
.The text was updated successfully, but these errors were encountered: