Skip to content

[TwigComponent]: allow to define css file per componentΒ #2379

Open
@tito10047

Description

@tito10047

Hi, I use component directory structure from this article and is powefrull. I use it in all my projects.
But I miss there One feature. I cant use custom css file without javascript controller

this can be nice feature

#[AsTwigComponent('MyComponent', template: 'MyComponent/MyComponent.html.twig', css:"MyComponent/MyComponent.css")]
class MyComponent{
    
}

The css parameter add css file to asset mapper.

If this is good idea, I can try do PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)TwigComponent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions