mhsdesign / neos-afxfiles
该包的最新版本(1.0)没有可用的许可证信息。
提供在单独的模板文件中使用AFX的选项。
1.0
2021-06-28 20:30 UTC
Requires
- neos/flow: *
- neos/fusion-afx: *
README
通过composer安装
composer require mhsdesign/neos-afxfiles
提供在单独的模板文件中使用AFX的选项。
您的Fusion代码
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`
}
您的AFX文件,例如 ./DistributionPackages/Vendor.Site/Resources/Private/Fusion/Content/Stuff/Stuff.afx
(您可以使用任何文件扩展名,例如 .html
.afx
)
<section class="foo">
<div class="bar">
<h2>{props.title}</h2>
<p>{props.somOtherProp}</p>
<Vendor.Site:Content.SomeComponent/>
</div>
</section>