Skip to content

Import Anonymous or TwigComponent with custom name #1108

Open
@WebMamba

Description

@WebMamba

Just to get back on @seb-jean comment: #802 (comment).

I am thinking about something similar. When you start working with anonymous components you can end up with a lot of subfiles and things can get messy easily.

 <twig:Form:Button:PrimaryButton/>

But instead, we can have something like:

   {% require Form:Button:PrimaryButton as PrimaryButton %}

<twig:PrimaryButton/>

Tell me what you think about it.
Cheers 😁

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions