---
title: "templates"
manual: "Content Blocks"
version: "2.4"
permalink: "https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-definition-source@2.4"
source: "Definition/Templates/Index.rst"
rendered: "2026-09-22T14:38:30+00:00"
---

# templates {#cb-definition-source}

The **templates** folder contains private resources. If you are familiar with the
directory structure of extensions, this would be the **Resources/Private**
folder. There is a limited set of directories and files, which you can place
here.

## backend-preview.fluid.html {#backend-preview-fluid-html}

The **backend-preview.fluid.html** can be added to customize the backend preview for
your editors.

Learn more about [backend previews](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:api-backend-preview@2.4).

## frontend.fluid.html {#frontend-fluid-html}

This is the default frontend rendering definition for [Content Elements](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:yaml-reference-content-element@2.4).
You can access your fields by the variable `{data}`.

Learn more about [templating](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-templating@2.4).

## partials {#partials}

For larger Content Elements, you can divide your **frontend.fluid.html** template into
smaller chunks by creating separate partials here.

Partials are included as you normally would in any Fluid template.

> [!NOTE]
> Due to current Fluid restrictions, partials have to start with an uppercase
> letter. This restriction might be lifted in later Fluid versions (v5 or above).

```html
<f:render partial="Component" arguments="{_all}"/>
```

See also:

-   Learn how to [share partials](https://docs.typo3.org/permalink/friendsoftypo3/content-blocks:cb-extension-partials@2.4) between Content Blocks.

## layouts {#layouts}

You can also add layouts to your Content Block if needed.

```html
<f:layout name="MyLayout">
```
