---
id: fast-element.viewtemplate.render
title: ViewTemplate.render() method
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [ViewTemplate](./fast-element.viewtemplate.md) &gt; [render](./fast-element.viewtemplate.render.md)

## ViewTemplate.render() method

Creates an HTMLView from this template, binds it to the source, and then appends it to the host.

<b>Signature:</b>

```typescript
render(source: TSource, host: Node | string, hostBindingTarget?: Element): HTMLView;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  source | TSource | The data source to bind the template to. |
|  host | Node \| string | The Element where the template will be rendered. |
|  hostBindingTarget | Element | An HTML element to target the host bindings at if different from the host that the template is being attached to. |

<b>Returns:</b>

[HTMLView](./fast-element.htmlview.md)
