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

HTML elements with empty array of attributes and/or children #83

Open
laurentpayot opened this issue Oct 27, 2023 · 0 comments
Open

HTML elements with empty array of attributes and/or children #83

laurentpayot opened this issue Oct 27, 2023 · 0 comments

Comments

@laurentpayot
Copy link

laurentpayot commented Oct 27, 2023

Hi, thank you for this neat framework. I’m coming from Elm and I’m currently evaluating Flame to rewrite an Elm app in PureScript.

Is there a way to have HTML elements with an empty array of attributes and/or children?

  • p [] […children…] must be replaced by p_ […children…]
  • p […attributes…] [] must be replaced by p' […attributes…]
  • p [] [] is impossible to obtain (am I wrong?)

For readability reasons I want to avoid the HE. prefix everywhere before my tags so I import my elements one by one, and having to import p, p', p_ etc. is redundant.

For the same readability reason I really wish we could use explicit empty arrays rather than one character suffixes that completely change the usage of the element. Is there a way to do that without monkey-patching Flame? If not then you can consider this issue as a feature request 😉

Cheers,
Laurent

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

1 participant