Skip to main content
Templates are the foundation of Fileloom. They combine HTML structure, CSS styling, and Handlebars placeholders to create dynamic, reusable PDF documents.

What is a Template?

A template is a saved document design that you can use repeatedly with different data. Instead of sending raw HTML with every API request, you:
  1. Create a template once in the dashboard
  2. Reference it by ID in API requests
  3. Pass only the dynamic data

Template Components

Every template consists of:

Template vs Raw HTML

Use templates for any document you’ll generate more than once. They’re faster (no HTML transfer), easier to maintain, and support versioning.

Creating Your First Template

1

Open Template Editor

Go to TemplatesCreate Template in the dashboard.
2

Write HTML

Create your document structure with Handlebars placeholders:
3

Add CSS

Style your document in the CSS tab:
4

Test with Data

Enter sample JSON in the Test Data tab:
5

Preview and Publish

Check the live preview, then click Publish to make it available via API.

Handlebars Basics

Fileloom uses Handlebars for dynamic content:
See Handlebars Basics for complete syntax guide.

Built-in Helpers

Fileloom includes 70+ helpers for common operations:

Text & String

uppercase, lowercase, truncate, replace

Numbers & Currency

currency, formatNumber, percentage

Dates & Time

formatDate, formatTime, addDays, now

Math & Logic

add, multiply, round, gt, lt, and, or

Using Templates via API

Reference your template by ID:
Find template IDs in the dashboard templates list or template editor.

Next Steps

Handlebars Basics

Learn template syntax in depth

Starter Templates

Browse 50+ ready-to-use templates

Helpers Reference

Explore all 70+ built-in helpers

Best Practices

Tips for production templates