# content_for_layout

> The content_for_layout Liquid object, which renders the content of the current template and must be placed inside the body tag of a theme layout file.

Dynamically returns content based on the current [template](/docs/theme/architecture/templates/overview).

Include the `content_for_layout` object in your [layout files](/docs/theme/architecture/layouts/overview) between the `<body>` and `</body>` HTML tags.

:::note
The `content_for_layout` object is required in `theme.liquid`.
:::

```liquid title="theme.liquid"
<!DOCTYPE html>
<html>
  <head>
  	<!-- ... -->
  	{{ content_for_header }}
  </head>
  <body>
    <!-- ... -->
    {{ content_for_layout }}
    <!-- ... -->
  </body>
</html>
```
