Skip to content

Instantly share code, notes, and snippets.

@eliotharper
Created June 28, 2016 18:32
Show Gist options
  • Save eliotharper/046cea2a299fd0b2168637db74a5d9fe to your computer and use it in GitHub Desktop.
Save eliotharper/046cea2a299fd0b2168637db74a5d9fe to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GTL Test
</title>
</head>
<body>
%%[
var @reservationData,
set @reservationData = '{"reservationId":"RXJ34P","passengerPriorityStatus":"Fast Track","passengerSequenceNumber":"ABC123","securityScreening":"TSA PreCheck"}'
]%%
{{.datasource reservation type=variable}}
{{.data}}
{ "target" : "@reservationData" }
{{/data}}
%%[var @status
set @status = TreatAsContent('{{passengerPriorityStatus}}')
]%%
<p>Your reservation code is: {{reservationId}}
</p>
<p>status: %%=v(@status)=%%</p>
{{/datasource}}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment