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

Make it possible to write node.class.class #2

Open
DarkWiiPlayer opened this issue Jan 27, 2021 · 0 comments
Open

Make it possible to write node.class.class #2

DarkWiiPlayer opened this issue Jan 27, 2021 · 0 comments
Labels
wontfix This will not be worked on

Comments

@DarkWiiPlayer
Copy link
Owner

DarkWiiPlayer commented Jan 27, 2021

Example

div.box(p.tagline.center("The best we've ever built"))

To achieve this:

  • Instead of closing node, return tables
  • Use __call to generate nodes
  • Use __index to return new tables with class information

Considerations

  • Does this decrease performance? Does it improve it?
  • Turn underscores _ into hyphens -
  • What about non-string keys?
@DarkWiiPlayer DarkWiiPlayer added the wontfix This will not be worked on label May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant