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

There is no easy way to use custom tags (like <dialog>) #223

Open
veksha opened this issue Mar 22, 2022 · 4 comments
Open

There is no easy way to use custom tags (like <dialog>) #223

veksha opened this issue Mar 22, 2022 · 4 comments

Comments

@veksha
Copy link

veksha commented Mar 22, 2022

There is no easy way to use custom tags (like dialog).
Is it possible to add it somehow?

my workaround:

verbatim """<dialog>"""
....
verbatim """</dialog>"""

ps: dialog is not a custom tag, actually. but it doesn't matter anyways. doesn't work.

@Araq
Copy link
Collaborator

Araq commented Mar 23, 2022

The point is to detect mistakes, if everything compiles there would be no checking. But feel free to add "dialog" to the list of known tags.

@veksha
Copy link
Author

veksha commented Mar 23, 2022

The point is to detect mistakes, if everything compiles there would be no checking. But feel free to add "dialog" to the list of known tags.

Can the code of karax be modified in such a way that the user will be allowed to add custom tags in the his code explicitly, without issuing PR for every new tag or modify local sources of karax?

@Araq
Copy link
Collaborator

Araq commented Mar 23, 2022

I remember such a mechanism to exist but I forgot how it works. And maybe I misremember, but it's a solid feature request.

@Massolari
Copy link

In Elm we have functions for each tag, but there is a function called Html.node that's used to custom (or not implemented) tags, this function gets a String as a parameter that's the name of the tag, for example:

Html.node "dialog" [] []

Maybe Karax could have something like that

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

No branches or pull requests

4 participants