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

Use of elements not in the library #90

Open
Bjorninn1 opened this issue Sep 21, 2022 · 1 comment
Open

Use of elements not in the library #90

Bjorninn1 opened this issue Sep 21, 2022 · 1 comment

Comments

@Bjorninn1
Copy link

Hello, I have been able to make some examples work using the library but how would I add an element to the body that's not in the swift-html library? For example if a script is used and it gives access to some new element that's not a ".h1", ".p", ".div" etc. how would that be done? Would really appreciate any suggestions to solve this, thank you.

@stephencelis
Copy link
Member

@Bjorninn1 Check out the "design" section of the README, which shows how helpers are just sugar over the raw values:

https://github.com/pointfreeco/swift-html#design

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants