---
schema_version: "1"
id: 964bc0b2dd6c35ade39be6612724015e02c15c12b2ff2d4b577537021b1b8fcf
title: isreplace 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-isreplace.md
canonical_url: https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/b2c-isreplace.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6942cc4966fcd75b77ef972f628e16dc9586ff2cd9428d2cdb4869eebba7c5c6
products:
  - Composable Storefront
  - Salesforce APIs
---
# isreplace Element

The decorator template uses `<isreplace/>` to identify where the decorated content is to be included.

## Syntax

```
<isreplace/>
```

## Purpose

Typically, only one `<isreplace/>` tag 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, effectively, omitted from the resultant output.
- If the decorator template has multiple `<isreplace/>` tags, the content to be decorated is included for each `<isreplace/>` tag.

## Example 1: Rendering Template that Uses Decorator

```
<isset name="DecoratorTemplate" value="folder/pt_mytype" scope="page"/>
<isdecorate template="${DecoratorTemplate}">
    ...content...
</isdecorate>
```

In this example, the page contents of the main portion of the browser are inserted into the HTML file.

## Example 2: Decorator Template

```
<body>
  <div id="pt_mytype">
    <div id="container">
      <div id="main">
        <div id="content">
	  <isreplace/>
	  </div>
      </div> <!-- end main -->
      <isinclude template="components/template">
    </div> <!-- end container -->
  </div> <!-- end pt_mytype -->
</body>
```
