EasyTemplate OSS Release: Templating Superpowers for Go
Blog post from Speakeasy
EasyTemplate is an advanced templating engine for Go that enhances the standard text/template package by integrating JavaScript and TypeScript capabilities, allowing for more complex logic during the templating process. Developed by Speakeasy, it aims to facilitate the generation of SDKs from API specifications by enabling templates to interact with one another dynamically. The tool supports JavaScript snippets, ES5 through goja, and underscore.js, making it versatile for various templating needs. EasyTemplate allows developers to decouple templating from the core Go binary, enabling runtime plugin-like template management without altering the original codebase, and is designed to leverage the ubiquity and simplicity of JavaScript and TypeScript, as well as their vast ecosystems.