About this post
I wanted to do something simple, but at the same time, I wanted to learn new things about Node and TypeScript!
So I came up with Back2Roots which is a Node-based static site generator using Markdown and Twig as a templating language. Of course, the feature list is far more reduced than it would be for any existing generator, but while working on Back2Roots I learn about Node and TypeScript.
So, in the end, I'm building my new blog with a new, custom tool that I've to build on my own while learning new things. So what can I expect more?
Back2Roots is an open-source project. Feel free to fork and adapt it to your needs or let me know about feature requests or bug reports!
TypeScript + Node + Markdown + Twig
The project is based on Node with TypeScript from the ground up. The actual static site generation happens via
- parsing the markdown files via markdown-it
- setup Twig infrastructure via twig.js
- passing the markdown data through the Twig instance which generates the final HTML files