Operations (sample payloads)

Main operations
Copy

Template
Copy

Use Mustache templating to substitute variables into a HTML template.

Sample Input

1
{
2
"parameters": {
3
"name": "John Doe",
4
"company": "Acme Inc.",
5
"position": "Software Engineer",
6
"years_experience": 5
7
},
8
"template": "<html><body><h1>Employee Profile</h1><p>Name: {{name}}</p><p>Company: {{company}}</p><p>Position: {{position}}</p><p>Years of Experience: {{years_experience}}</p>{{> skills}}</body></html>",
9
"partials": {
10
"skills": "<h2>Skills</h2><ul><li>JavaScript</li><li>Python</li><li>React</li></ul>"
11
}
12
}

Sample Output

1
{
2
"result": "<html><body><h1>Employee Profile</h1><p>Name: John Doe</p><p>Company: Acme Inc.</p><p>Position: Software Engineer</p><p>Years of Experience: 5</p><h2>Skills</h2><ul><li>JavaScript</li><li>Python</li><li>React</li></ul></body></html>"
3
}