mhsdesign / neos-afxfiles
Provides option to use AFX in separate template files.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- neos/flow: *
- neos/fusion-afx: *
README
Install via composer:
composer require mhsdesign/neos-afxfiles
Provides option to use AFX in separate template files.
Your Fusion Code:
prototype(Vendor.Site:Content.Stuff) < prototype(Neos.Neos:ContentComponent) {
title = Neos.Neos:Editable {
property = "title"
}
somOtherProp = 'Hello World'
renderer = afxFile`resource://Vendor.Site/Private/Fusion/Content/Stuff/Stuff.afx`
}
Your AFX File e.g. ./DistributionPackages/Vendor.Site/Resources/Private/Fusion/Content/Stuff/Stuff.afx
(you can use as file extension whatever you like e.g. .html
.afx
)
<section class="foo">
<div class="bar">
<h2>{props.title}</h2>
<p>{props.somOtherProp}</p>
<Vendor.Site:Content.SomeComponent/>
</div>
</section>