-
- Notifications
You must be signed in to change notification settings - Fork 388
Open
Labels
RFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)
Description
Description
We started to use twig components 🎉
But we face a DX issue. Allow me to show some code:
<twig:Table:Root> <twig:Table:Thead> <twig:Table:Tr> {% for column in outerScope.outerScope.outerScope.computed.columns %} <twig:Table:Th> {{ column.label }} </twig:Table:Th> {% endfor %} <twig:Table:Th> Actions </twig:Table:Th> </twig:Table:Tr> </twig:Table:Thead>As you can see, we have to write:
outerScope.outerScope.outerScope.computed.columns 🥵
So quick question : Could we automatically search in outerscope when something is not found in the current context?
This would allow us to write:
computed.columns Example
No response
jonathanlevaillant
Metadata
Metadata
Assignees
Labels
RFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)