Skip to content
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

renderFromHTML #13

Closed
thescientist13 opened this issue May 1, 2022 · 0 comments · Fixed by #22
Closed

renderFromHTML #13

thescientist13 opened this issue May 1, 2022 · 0 comments · Fixed by #22
Assignees
Labels
0.1.0 documentation Improvements or additions to documentation feature New feature or request good first issue Good for newcomers

Comments

@thescientist13
Copy link
Member

thescientist13 commented May 1, 2022

Type of Change

  • New Feature Request

Summary

Would like to introduce an API where the entry point can be a fragment of HTML instead of a custom element (JS)

Details

For example

import { renderToHTML } from 'wcc';

const { html } = await renderToHTML(`
  <body>
    <wcc-header></wcc-header/>

    <h1>Welcome to the Home Page</h1>

    <wcc-footer></wcc-footer/>
  <body>
`;
@thescientist13 thescientist13 added the feature New feature or request label May 1, 2022
@thescientist13 thescientist13 added this to the MVP milestone May 1, 2022
@thescientist13 thescientist13 self-assigned this May 1, 2022
@thescientist13 thescientist13 removed their assignment May 1, 2022
@thescientist13 thescientist13 added documentation Improvements or additions to documentation good first issue Good for newcomers labels May 1, 2022
@thescientist13 thescientist13 self-assigned this May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.1.0 documentation Improvements or additions to documentation feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant