Releases: neos/fusion-afx
1.4.1
Support html comments and backslashes in attributes
Merge pull request #27 from mficzel/feature/afxComments FEATURE: Support html comment syntax in afx
1.3.2
Major changes:
- move AFX parser from packagefactory/afx into this package
- compatibility with Neos 5.0
1.3.0 and 1.3.1 had version constraints that were accidentally relaxed too much and allowed older Neos versions to install an afx they were not compatible with.
Detailed changes: 1.2.0...v1.3.2
ES6 Spread Syntax
To apply multiple properties to a fusion prototype with a single expression afx supports the spread syntax from ES6:
<Vendor.Site:Component {...expression} />
Is transpiled as:
Vendor.Site:Component {
@apply.spread_1 = ${expression}
}
Spreads can be combined with props and the order of the definition is of props and spreads is preserved, spreads will override previously defined props but are overwritten again by later props.
Note: Spreads rely on the @apply feature of Neos.Fusion 4.2 so this version of Neos is required.
Add `@path` meta-property
The @path
-property of tag-children can be used to render a specific afx-child into the given fusion path instead of beeing included into the content. This allows to render AFX children into different props and to assign Fusion-prototypes to props.
<Vendor.Site:Prototype>
<h2 @path="title">{props.title}</h1>
<p @path="description">{props.description}</p>
</Vendor.Site:Prototype>
Relax Neos version constraint for 4.0
v1.0.1 TASK: Adapt version constraints
Initial release of Neos.Fusion.Afx
The package was transferred from PackageFactory.AtomicFusion.AFX
to the Neos.Fusion.Afx
namespace.