Templify Documentation¶
Welcome to Templify - a powerful tool for creating dynamic Word documents from templates with placeholders, conditionals, and loops.
👥 Choose Your Path¶
📝 I Create Word Templates¶
I design Word documents and want to add dynamic placeholders.
I work with Word documents and need to create templates with placeholders like {{CustomerName}} that get filled in with data. I don't need to write code - I just need to know how to structure my templates and data.
→ Get Started as a Template Author
Quick Links: - JSON Basics - Understanding your data format - Template Syntax Reference - Complete syntax guide - Examples Gallery - Real-world templates - Best Practices - Tips for great templates
💻 I'm a Developer¶
I'm integrating Templify into my .NET application.
I'm a software developer who wants to use the Templify library in my C# application to programmatically generate Word documents from templates.
→ Get Started as a Developer (Coming soon)
Quick Links: - Installation Guide (Coming soon) - API Reference (Coming soon) - Code Examples (Coming soon) - Architecture Overview (Coming soon)
What is Templify?¶
Templify lets you create Word document templates with special placeholders that get replaced with actual data. Perfect for generating:
- Invoices & Receipts - Customer invoices with line items
- Reports - Formatted reports from database data
- Contracts - Contracts with dynamic clauses
- Letters - Mail merge for personalized letters
- Certificates - Batch-generated certificates
Key Features¶
✨ Simple Placeholders - {{VariableName}} syntax
🔁 Loops - Repeat sections with {{#foreach}}...{{/foreach}}
⚡ Conditionals - Dynamic content with {{#if}}...{{#else}}...{{/if}}
📊 Table Support - Loop through table rows
🎨 Formatting - Preserves Word styling and supports markdown
🚀 No Word Required - Uses Open XML SDK (template authors still use Word to create templates)
Quick Example¶
Template (in Word):¶
Invoice for {{CustomerName}}
Date: {{InvoiceDate}}
Items:
{{#foreach Items}}
- {{Product}}: {{Price}}
{{/foreach}}
Data (JSON):¶
{
"CustomerName": "John Doe",
"InvoiceDate": "2024-01-15",
"Items": [
{ "Product": "Service A", "Price": "$100" },
{ "Product": "Service B", "Price": "$200" }
]
}
Output:¶
Additional Resources¶
❓ FAQ¶
Common questions and troubleshooting tips
🎓 Tutorials¶
Step-by-step guides from basics to advanced features
📖 Quick Start Guide¶
Create your first document in 5 minutes
Open Source¶
Templify is open source and licensed under the MIT License.