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 template composition #47

Closed
hhimanshu opened this issue May 1, 2024 · 4 comments
Closed

Support for template composition #47

hhimanshu opened this issue May 1, 2024 · 4 comments
Labels

Comments

@hhimanshu
Copy link

Hey, I found your project to be useful. I was wondering if there is a way to say template="tailwind" && template="content"

@cezaraugusto
Copy link
Member

cezaraugusto commented May 1, 2024

Not possible, but that's a great idea!

Steps to get it done:

  1. Have a new "content-tailwind" template within the templates folder. There is a react-typescript template at the moment that can be used as a reference, as it uses a content_script file with Tailwind.css.

The react-typescript template

  1. in the --template flag argument, replace any , input value with -, and sort alphabetically. This will make --template=tailwind,content into content-tailwind. If step 1) is done, it should call the template just fine.

  2. Update the Templates doc to include the new template

I'm currently focused on adding more browser and framework support, but would be great to see this in the future. Will set this as open for grabs :)

@cezaraugusto
Copy link
Member

@OSpoon is this something you would be interested to implement?

@OSpoon
Copy link
Member

OSpoon commented Jun 11, 2024

@OSpoon is this something you would be interested to implement?

I am interested,I will try to implement this feature in my free time.

@cezaraugusto
Copy link
Member

@hhimanshu @OSpoon after a very deep thought I decided not to move forward with this one as it's very unlikely that we'll be able to provide good support for this feature given other priorities. Closing as not actionable, but really appreciate the efforts to make this possible

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

No branches or pull requests

3 participants