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

Support for string arrays #12

Closed
simon-bourne opened this issue Dec 17, 2023 · 5 comments · Fixed by #16
Closed

Support for string arrays #12

simon-bourne opened this issue Dec 17, 2023 · 5 comments · Fixed by #16
Assignees

Comments

@simon-bourne
Copy link

Hi, any chance you'd be happy to add support for str arrays? Something like:

macro_rules! tws{
    [$($class:literal),* $(,)?] => {
        [$($crate::tw!($class)),*]
    }
}

so I could write:

tws!["bg-blue-500", "text-red-50"]

This makes twust work much more smoothly with my web framework, Silkenweb.

Thanks!

@Oyelowo
Copy link
Owner

Oyelowo commented Dec 17, 2023

@simon-bourne thanks for opening the issue.
I actually had this planned already and will implement pretty soon in the next couple of days including support for conditionals. I’m trying to get https://github.com/Oyelowo/surreal-orm ready for v1 alpha by today or tomorrow and will support that and more. Hope that isn’t too late for you?

@simon-bourne
Copy link
Author

That will be great, thanks. I didn't expect such a fast turnaround! Looking forward to seeing what you've got planned for conditionals.

@simon-bourne
Copy link
Author

Hi, have you had a chance to look at this? Thanks!

@Oyelowo
Copy link
Owner

Oyelowo commented May 3, 2024

Hey @simon-bourne,

This is still a big priority for me. Some unforeseen issues came up, but I'm close to clearing them up already. I expect to make those changes within a month from now-hopefully sooner.

Thanks for your patience!

@Oyelowo Oyelowo self-assigned this Jan 17, 2025
@Oyelowo Oyelowo linked a pull request Jan 17, 2025 that will close this issue
@Oyelowo
Copy link
Owner

Oyelowo commented Jan 17, 2025

@simon-bourne This is now supported in 1.0.6

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

Successfully merging a pull request may close this issue.

2 participants