Quickly get setup using Canvas.
Before you can create branded, globally distributed content, you need to create a template. A template is a reusable “blueprint” for content, to be hydrated and rendered with data at key points in your application.
Some use cases may be:
Create a canvas template with a JSON schema that defines the data that will be injected into the template. As well as the HTML template that will be rendered.
A template now exists, and can be rendered at any point in your application. To render a template, pass the ID as well as the runtime variables to create a CanvasTemplateInstance
.
The resulting HTML rendered will be:
This will now be globally distributed, publicly available, and visible at https://cdn.canvas.truststack.dev/abc-123
.
Use your own branding, create a template, and start issuing rendered content on behalf of your customers.
Quickly get setup using Canvas.
Before you can create branded, globally distributed content, you need to create a template. A template is a reusable “blueprint” for content, to be hydrated and rendered with data at key points in your application.
Some use cases may be:
Create a canvas template with a JSON schema that defines the data that will be injected into the template. As well as the HTML template that will be rendered.
A template now exists, and can be rendered at any point in your application. To render a template, pass the ID as well as the runtime variables to create a CanvasTemplateInstance
.
The resulting HTML rendered will be:
This will now be globally distributed, publicly available, and visible at https://cdn.canvas.truststack.dev/abc-123
.
Use your own branding, create a template, and start issuing rendered content on behalf of your customers.