---
title: Populate template placeholders in streaming responses
summary: Use a transform stream to search the body of a response and replace simple template placeholders with content generated at the edge, without buffering.
url: https://www.fastly.com/documentation/solutions/examples/template-engine-stream-transform
---

Use a transform stream to search the body of a response and replace simple template placeholders with content generated at the edge, without buffering.

## Compute

### Javascript

[Try it in Fastly Fiddle](https://fiddle.fastly.dev/d89c6eeb)

