DEV Community

Godefroy Ponsinet
Godefroy Ponsinet

Posted on

TypeScript as a Template Engine

I created a project that aims to provide code generation through TypeScript literals tags and syntax highlighting for your editor.

It enhances codegen with strictly typed templates, thanks to Typescript.

End of gotemplate, handlebars and every other error prone engine.

It comes with 3 packages for now:

  1. The core library with available literals: https://jsr.io/@tmpl/core
  2. The cli to generate files from stdin or directories: https://jsr.io/@tmpl/gen
  3. The vscode extension to read templates without eye bleeding: https://github.com/90dy/typescript-template-engine

Please give me feedback here or via GitHub issue to know what to improve.

Thanks

Top comments (0)