{"repo":"ArFnds/godocx-template","free":true,"listed":false,"github":"https://github.com/ArFnds/godocx-template","clone":"git clone https://github.com/ArFnds/godocx-template.git","description":"Template-based docx report creation in Go","language":"Go","stars":12,"topics":["docx","template","word"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Godocx-templates Template-based docx report creation. (See the blog post). HEAVILY inspired (aka copy/pasted) from docx-templates 🙏 Why? Write documents naturally using Word , just adding some commands where needed for dynamic contents Features Insert the data in your document ( INS , = or just nothing ) Embed images and HTML ( IMAGE , HTML ). Dynamic images can be great for on-the-fly QR codes, downloading photos straight to your reports, charts… even maps! Add loops with FOR / END-FOR commands, with support for table rows, nested loops Include contents conditionally, IF a certain code expression is truthy ( IF / END-IF ) Define custom aliases for some commands ( ALIAS ) — useful for writing table templates! Plenty of examples in this repo Embed hyperlinks ( LINK ). Not yet supported Contributions are welcome! Table of contents - Godocx-templates - Why? - Features - Not yet supported - Table of contents - Installation - Usage - Writing templates - Custom command delimiters - Supported commands - Insert data with the INS command ( or using = , or nothing at all) - LINK - HTML - IMAGE - FOR and END-FOR - IF and END-IF - ALIAS (and alias resolution with ) - Inserting literal XML - License (MIT) Installation Usage Here is a simple example, with report data injected directly as an object: Writing templates Create a word file, and write your template inside it. Custom command delimiters You can use different left/right command delimiters by passing an object to CmdDelimiter : Thi","default_branch":null,"files":null,"tree":[],"storefront":"/r/ArFnds","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ArFnds/godocx-template/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."}