我有一个模板,其中有一行是这样的:
<f:format.htmlentitiesDecode>
{product.features}
</f:format.htmlentitiesDecode>
“features”是“product”数据模型的一个属性。
如果在产品上调用方法,请像这样打印结果:
<f:format.htmlentitiesDecode>
{product.getStrippedFeatures}
</f:format.htmlentitiesDecode>
但是这会给我返回空内容。
我如何调用产品模型中的方法并打印其输出?
is
和has
。 - DanielisRoot
或hasStrippedFeatures
,那么在fluid中不直观地使用{root}
和{strippedFeatures}
(我认为{isRoot}
和{hasStrippedFeatures}
会是更好的选择)。 - Matmarbon