mhsdesign/neos-afxfiles
Composer 安装命令:
composer require mhsdesign/neos-afxfiles
包简介
Provides option to use AFX in separate template files.
README 文档
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>
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-06-28