---
schema_version: "1"
id: ff5c0a0272f3485f3012e97fdf33a1874eb6ee9d1b8fbf4aa0849fc111869fc0
title: isdecorate Element
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/commerce-cloud/b2c-commerce/guides/isml/b2c-isdecorate.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-isdecorate.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f1116427ee4a5d390e803e0f38e136b3eec6cbdb71cab4a89c334e768b16cd12
products:
  - Composable Storefront
  - Salesforce APIs
---
# isdecorate Element

Decorate the enclosed content with the contents of the specified (decorator) template.

## Syntax

```
<isdecorate template = template_name> //required
  ...
</isdecorate>
```

- template = template_name

  - : _Allowed data type:_ string or expression.

    `template_name` is the name of the decorator template that is used to decorate the contents.

## Purpose

The decorator template has the tag `<isreplace/>` identifying where the decorated content shall be included. Typically, only one tag (`<isreplace/>`) is used in the decorator template. However, multiple or zero `<isreplace/>` tags can also be used. If the decorating template doesn't have an `<isreplace/>` tag, the decorated content is omitted from the resultant output. If the decorator template has multiple `<isreplace/>` tags, the content to be decorated will be included for each `<isreplace/>` tag.

A typical use case is to decorate the content body with a header and footer.

## Example

The decorator tags can be nested to an arbitrary depth, for example:

```
<isdecorate template="mytemplate">
	...
	<isdecorate template="mytemplate">
	...
	</isdecorate>
</isdecorate>
```

Different decorator templates can be used in different `<isdecorate/>` tags, both in nested and non-nested scenarios.
