Go template guarded by a JSON Schema.

Browse this template in the repository →

The PDFs below are rendered live by PDF Server from the shipped examples.

default

Your browser can’t display this PDF inline.

Download the PDF — schema_template / default.

schema_template / default — Download PDF

Inputs

Render data

default

{
  "value": "hello"
}

Data schema

schema.json

{
  "type": "object",
  "properties": {
    "value": {
      "type": "string"
    }
  },
  "required": [
    "value"
  ]
}

Template

template.tmpl

<html><body><h1>{{ .value }}</h1></body></html>