-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add .html
support
#3867
Add .html
support
#3867
Conversation
🦋 Changeset detectedLatest commit: 41820f9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 12 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
For TypeScript purpose, an accessible module declaration will be needed so there's no editor errors when importing declare module "*.html" {
const content: string;
export default content;
} It can be inside |
Changes
.html
support to Astro!.html
files can be used as components or pages.html
files accept content for anyslot
elements (default or named).html
files can opt-out ofslot
overloading by using theis:inline
attribute.html
file is not supported, assets must be inpublic/
.astro
file with imports if you need this!.html
files treatscript
andstyle
elements asis:inline
..astro
file if you need advanced script/style behavior..html
files treat self-closing elements according to the HTML specification (/>
is ignored.).astro
file if you want self-closing element support for every element.Testing
Test coverage added
Docs
TODO