Page.headerData ViewHelper <f:page.headerData>
New in version 14.0
The <f:
ViewHelper allows injecting arbitrary content into
the HTML
<head>
of a rendered page.
The ViewHelper internally uses the PageRenderer API
and is useful when ViewHelpers like
<f:asset.css> or
<f:asset.script>
do not support all required attributes or use cases
(for example dns-
, preconnect
, tracking scripts, or inline
JavaScript).
Warning
The ViewHelper outputs given content as is. Possible user supplied input for the ViewHelpers must manually be escaped in order to prevent a Cross-site scripting (XSS) vulnerability.
Go to the source code of this ViewHelper: Page\HeaderDataViewHelper.php (GitHub).