Template Functions

Use these functions to interact with templates.

Load 

In your server-side JavaScript code, first load the core library using this syntax:

1Platform.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’.

1var t = Template.Init('myTemplate');