---
title: "Template ViewHelper <c:template>"
manual: "SAV Charts"
version: "14.7"
source: "Reference/FluidParserViewHelpers/TemplateViewHelper/Index.rst"
rendered: "2026-09-17T13:01:15+00:00"
---

# Template ViewHelper `<c:template>` {#template-viewhelper-c-template}

ViewHelper that includes a SAV Charts template.

Go to the source code of this ViewHelper:
[TemplateViewHelper.php](https://github.com/YolfTypo3/SavCharts/blob/main/Classes/ViewHelpers/TemplateViewHelper.php) (GitHub).

## Arguments {#arguments}

The following arguments are available for the template ViewHelper:

-   **id**

    -   *Required:* true
    -   *Type:* string

    Template id.

-   **fileName**

    -   *Default:* ''
    -   *Type:* string

    File name containing the template

## Examples {#examples}

The following examples should be included in the
"Templates" field of the "Fluid Parser" tab
of the plugin.

### With fileName attribute {#with-filename-attribute}

```xml
<c:template id="1" fileName="EXT:sav_charts/Resources/Private/Templates/ChartsExamples/FluidParser/BarChart.fluid" />
```

### Child nodes {#child-nodes}

```xml
<c:template id="1">
    EXT:sav_charts/Resources/Private/Templates/ChartsExamples/FluidParser/BarChart.fluid
</c:template>
```
