File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public function preLexComponents(string $input): string
101
101
&& preg_match ('/\S/ ' , $ char )
102
102
) {
103
103
$ this ->currentComponents [\count ($ this ->currentComponents ) - 1 ]['hasDefaultBlock ' ] = true ;
104
- $ output .= '{% block default %} ' ;
104
+ $ output .= '{% block content %} ' ;
105
105
}
106
106
107
107
$ output .= $ char ;
Original file line number Diff line number Diff line change @@ -64,12 +64,12 @@ public function getLexTests(): iterable
64
64
65
65
yield 'component_with_default_block_content ' => [
66
66
'<t:foo>Foo</t:foo> ' ,
67
- '{% component foo %}{% block default %}Foo{% endblock %}{% endcomponent %} ' ,
67
+ '{% component foo %}{% block content %}Foo{% endblock %}{% endcomponent %} ' ,
68
68
];
69
69
70
70
yield 'component_with_default_block_that_holds_a_component_and_multi_blocks ' => [
71
71
'<t:foo>Foo <t:bar /><t:block name="other_block">Other block</t:block></t:foo> ' ,
72
- '{% component foo %}{% block default %}Foo {% component bar %}{% endcomponent %}{% endblock %}{% block other_block %}Other block{% endblock %}{% endcomponent %} ' ,
72
+ '{% component foo %}{% block content %}Foo {% component bar %}{% endcomponent %}{% endblock %}{% block other_block %}Other block{% endblock %}{% endcomponent %} ' ,
73
73
];
74
74
}
75
75
}
You can’t perform that action at this time.
0 commit comments