{"repo":"accordproject/template-engine","free":true,"listed":false,"github":"https://github.com/accordproject/template-engine","clone":"git clone https://github.com/accordproject/template-engine.git","description":"Template Engine — converts TemplateMark + JSON data to AgreementMark","language":"TypeScript","stars":18,"topics":["concerto","markdown","template-engine","typescript"],"license":"Apache-2.0","category":"productivity","readme_excerpt":"Template Engine This is the Accord Project template engine. Rich-text templates are defined in TemplateMark (either as markdown files, or JSON documents) and are then merged with JSON data to produce output documents. Templates may contain TypeScript expressions. Resources - Getting Started Video - Template Playground - Running Code The core template engine is a JSON to JSON transformation that converts TemplateMark JSON + agreement data (JSON) to AgreementMark JSON. Note: Use the @accordproject/markdown-transform project to convert markdown templates to TemplateMark JSON and to convert AgreementMark JSON to output formats (HTML, PDF, DOCX etc.). For command-line usage please use @accordproject/template-cli . TemplateMark is a document object model that describes a rich-text template, with embedded variables, conditional sections, formulae etc. TemplateMark uses embedded TypeScript expressions for conditionals and calculations. The format of both TemplateMark and AgreementMark is specified using the Concerto data modeling language. At a high-level the template engine converts a TemplateMark DOM to an AgreementMark DOM, evaluating TypeScript expressions for conditional sections and formulae, and replaces variable references with variable values from the supplied agreement data. Execution Pipeline Overview Internally, the Template Engine evaluates templates through a structured execution pipeline: 1. Type Validation The TemplateMark JSON document and the incoming agreement data","default_branch":null,"files":null,"tree":[],"storefront":"/r/accordproject","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/accordproject/template-engine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}