Learn about TemplateMark, the markup language for creating dynamic legal templates
TemplateMark is a markup language that extends Markdown to create dynamic, data-driven legal documents. It allows you to define templates with variables, conditionals, and logic that bind to structured data models.
TemplateMark combines the simplicity of Markdown with powerful templating features to generate legal agreements and contracts. When you write a template in TemplateMark, you define placeholders and logic that get replaced with actual data at runtime.
TemplateMark is part of the Accord Project ecosystem and works seamlessly with Concerto data models and the Template Engine.
Your last order was placed {{createdAt as "D MMMM YYYY"}} ({{% return now.diff(order.createdAt, 'day')%}} days ago).Order total: {{% return '£' + order.orderLines.map(ol => ol.price * ol.quantity).reduce((sum, cur) => sum + cur).toFixed(2);%}}
Formulas must return a value and should be side-effect free. They execute in a sandboxed environment for security.
Here’s a full employment offer template demonstrating multiple TemplateMark features:
DATE: {{startDate as "DD MMMM YYYY"}}Dear {{candidateName}},We are pleased to offer you the position of **{{roleTitle}}** at **{{companyName}}**.Your employment with {{companyName}} will commence on {{startDate as "DD MMMM YYYY"}}.{{#clause annualSalary}}Your annual gross salary will be **{{doubleValue as "0,0"}} {{currencyCode}}**, payable in accordance with company policies.{{/clause}}{{#if probation}}{{#clause probation}}This offer includes a probation period of **{{months}} months**, during which your performance and suitability for the role will be evaluated.{{/clause}}{{/if}}We are excited about the opportunity to work with you and look forward to your contribution to the team.Sincerely, **Human Resources**{{companyName}}