helpers_handlebars
All Handlebars helpers: format_time, markdown, equal block.
Browse this template in the repository →
The PDFs below are rendered live by PDF Server from the shipped examples.
equal
markdown
timezone
utc
Inputs
Render data
equal
examples/equal.json
{
"equal_examples": {
"enabled": true
}
}
markdown
examples/markdown.json
{
"markdown_examples": {
"multi_line": "line1\nline2",
"list": "1. One\n2. Two"
}
}
timezone
examples/timezone.json
{
"time_examples": {
"from_time":"2015-01-01T00:00:00+05:00",
"to_time":"2015-01-01T00:00:00-05:00"
}
}
utc
examples/utc.json
{
"time_examples": {
"from_time": "2022-04-01T12:34:56Z",
"to_time": "2024-04-01T09:58:47Z"
}
}
Data schema
schema.json
{
"type": "object",
"properties": {
"time_examples": {
"type": "object",
"properties": {
"from_time": {
"type": "string",
"format": "date-time"
},
"to_time": {
"type": "string",
"format": "date-time"
}
}
},
"markdown_examples": {
"type": "object",
"properties": {
"multi_line": {
"type": "string"
},
"list": {
"type": "string"
}
}
},
"equal_examples": {
"type": "object"
}
}
}
Template
template.handlebars