You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DCD (Document Compilation Description) is a DSL (Domain-Specific Language) and compiler for converting .dcd template files into Microsoft Word (.docx) documents. It uses a simple INI-style section format with HTML-like template tags and JSON data binding.
Install
go install github.com/rachmanzz/dcd@latest
Quick Start
Create report.dcd:
[style]layout=A4
unit=inch
m=1
[section 0]name=report
var=info
keys=title, author, date
--- BODY ---
<w:c|b>Test Document</w:c>
<p>Title: <b>{{info.title}}</b></p>
<p>Author: <i>{{info.author}}</i></p>