neos-development-collection
neos-development-collection copied to clipboard
Feature AFX: <></> as alias for Neos.Fusion:Fragment
Description
proposal to introduce <></> for afx:
< @if={false}>
<h1>bar</h1>
foo
</>
as alias for Neos.Fusion:Fragment
<Neos.Fusion:Fragment @if=false>
<h1>bar</h1>
foo
<Neos.Fusion:Fragment/>
Implementation detail:
it should be discussed, if attributes on the fragment do need a leading space to make parsing easier:
< @if=false></>
or
<@if=false></>
it is not related to the XML/HTML syntax, .. it's looks strange
hmm but jsx does it like this... (to group stuff)
im also fine with closing this, as the fragment is not in much demand
I like the idea and I would prefer to have it with no leading space
hmm im not sure if this really justifies extending afx. Since i wrote this - i never needed to use fragment at all. So if @jonnitto doenst oppose i would lile to close this ^^ Or maybe you can show me some coll usages of fragment - who would profit from this syntax