---
title: "Inline ViewHelper <f:inline>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-inline"
source: "ViewHelpers/Fluid/Inline.rst"
rendered: "2026-09-26T08:24:58+00:00"
---

# Inline ViewHelper `<f:inline>` {#typo3fluid-fluid-inline}

> [!NOTE]
> This reference is part of the documentation of Fluid Standalone.
> If you are working with Fluid in TYPO3 CMS, please refer to
> [TYPO3's ViewHelper reference](https://docs.typo3.org/other/typo3/view-helper-reference/14.3/en-us/Global/Inline.html) instead.

Inline Fluid rendering ViewHelper

Renders Fluid code stored in a variable, which you normally would
have to render before assigning it to the view. Instead you can
do the following (note, extremely simplified use case):

```php
$view->assign('variable', 'value of my variable');
$view->assign('code', 'My variable: {variable}');

```

And in the template:

```php
{code -> f:inline()}

```

Which outputs:

```php
My variable: value of my variable

```

You can use this to pass smaller and dynamic pieces of Fluid code
to templates, as an alternative to creating new partial templates.

Go to the source code of this ViewHelper: [InlineViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/InlineViewHelper.php).

**Arguments**

The following arguments are available for the inline ViewHelper:

-   **code**

    -   *Type:* string

    Fluid code to be rendered as if it were part of the template rendering it. Can be passed as inline argument or tag content
