---
schema_version: "1"
id: 28474e009ed0f4ba5ce6ae615f6fc040969bc305d94bd99187529791068ff3e1
title: Template Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_templateFunctions.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_templateFunctions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: bc7baee3ee76a47e6d0810f1beece70ced60b81ba0b993e4e95b7ced5be1950f
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# Template Functions

Use these functions to interact with templates.

## Load

In your server-side JavaScript code, first load the core library using this syntax:

```
Platform.Load("core", "1");
```

## Initialization

To interact with a template via server-side JavaScript, you must first initialize the object. The code below initializes a list with the external key of 'myTemplate'.

```
var t = Template.Init('myTemplate');
```
