render.inline ViewHelper <vhs:render.inline>
¶
Render: Inline¶
Render as string containing Fluid as if it were part of the template currently being rendered.
Environment (template variables etc.) is cloned but not re-merged after rendering, which means that any and all changes in variables that happen while rendering this inline code will be destroyed after sub-rendering is finished.
Arguments¶
content¶
- DataType
string
- Required
false
- Description
Template code to render as Fluid (usually from a variable)
namespaces¶
- DataType
mixed
- Default
array ()
- Required
false
- Description
Optional additional/overridden namespaces, ["ns" => "MyVendorMyExtViewHelpers"]
onError¶
- DataType
string
- Required
false
- Description
Optional error message to display if error occur while rendering. If NULL, lets the error Exception pass trough (and break rendering)
graceful¶
- DataType
boolean
- Required
false
- Description
If forced to FALSE, errors are not caught but rather "transmitted" as every other error would be