extension.js icon indicating copy to clipboard operation
extension.js copied to clipboard

Support for template composition

Open hhimanshu opened this issue 1 year ago • 3 comments

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

hhimanshu avatar May 01 '24 02:05 hhimanshu

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 avatar May 01 '24 12:05 cezaraugusto

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

cezaraugusto avatar Jun 11 '24 03:06 cezaraugusto

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

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

OSpoon avatar Jun 11 '24 09:06 OSpoon

@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

cezaraugusto avatar Sep 20 '24 22:09 cezaraugusto