【问题标题】:Mask Fluid ViewHelper to not render it遮罩流体 ViewHelper 不渲染它
【发布时间】:2019-10-24 14:07:06
【问题描述】:

需要打印一些包含 ViewHelper 的 HTML 代码。 有没有办法防止 ViewHelpers 被渲染?

输入:

<my:printBold>Hello World</my:printBold>

实际输出:

你好世界

预期输出:

<my:printBold>Hello World</my:printBold>

【问题讨论】:

    标签: typo3 fluid typo3-9.x


    【解决方案1】:

    如果您愿意将您的 sn-p 移动到部分,您可以使用以下功能: https://github.com/TYPO3/Fluid/blob/2.6.5/examples/Resources/Private/Singles/Passthrough.html

    {parsing off} 将禁用整个文件的流体渲染。

    还发现了一个关于此的问题: https://github.com/TYPO3/Fluid/issues/346

    希望这会有所帮助。

    【讨论】:

    • 非常感谢。我还不知道。但是我不想为每个剪切创建一个部分,并且动态我不能将值作为参数传递给部分,否则它将被渲染。
    猜你喜欢
    • 2016-05-27
    • 1970-01-01
    • 1970-01-01
    • 2023-03-12
    • 1970-01-01
    • 2012-11-06
    • 2015-03-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多