typesafe-templates is a templating engine for writing compiler-checked templates in TypeScript by leveraging JSX to generate JavaScript code from TypeScript code files rather than text templates.This project spawned out of other projects of mine that require generating custom JavaScript files ahead of time. In previous projects I have always found working with other templating engine like EJS to be tedious and error-prone. So I invented this engine to improve the experience. By using JSX, templates written with typesafe-templates are 100% valid TSX code, so they can be checked by the compiler. Incompatible changes to a model are immediately identified. Several refactoring operations, like renaming or reordering arguments, also become easier. No more searching through text-based templates for all of the references that you missed.If you have thoughts or (fair) criticisms or find issues, I would love to hear them.https://ift.tt/2SXH45M
Submitted November 09, 2018 at 01:46AM by mattstrom
No comments:
Post a Comment