---
title: "Boxever.templating()"
slug: "bx-templating"
abstract: "Describes the templating() function in the Boxever JavaScript Library (Sitecore CDP Stream API)."
---
# Boxever.templating()

The `templating()` function lets you call [HandleBarsJS](https://handlebarsjs.com/) methods. Call this function to rerender a Web Experience or Web Experiment that is currently live in Sitecore Personalize. The rerendering happens in real time and without further calls to the API that the experience or experiment uses.

## Example

Run the [Handlebars.compile()](https://handlebarsjs.com/api-reference/compilation.html#handlebars-compile-template-options) method:

```javascript
Boxever.templating.compile();

```