Templates are the foundation of Fileloom. They combine HTML structure, CSS styling, and Handlebars placeholders to create dynamic, reusable PDF documents.Documentation Index
Fetch the complete documentation index at: https://docs.fileloom.io/llms.txt
Use this file to discover all available pages before exploring further.
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:- Create a template once in the dashboard
- Reference it by ID in API requests
- Pass only the dynamic data
Template Components
Every template consists of:| Component | Description |
|---|---|
| HTML | Document structure with Handlebars placeholders |
| CSS | Styling (colors, fonts, layout) |
| Settings | Paper size, margins, orientation |
| Test Data | Sample JSON for previewing |
Template vs Raw HTML
| Approach | Best For |
|---|---|
| Templates | Repeated documents (invoices, reports), team collaboration, version control |
| Raw HTML | One-off documents, dynamic layouts, programmatic generation |
Creating Your First Template
Handlebars Basics
Fileloom uses Handlebars for dynamic content: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: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

