stackbit / unibit

Stackbit's static site generator
https://docs.stackbit.com/unibit
MIT License
63 stars 10 forks source link

Request: Pug loader #27

Closed jcayzac closed 3 years ago

jcayzac commented 3 years ago

Pug's syntax is less verbose than Nunjucks and has very similar features. It would be nice if unibit supported themes written using Pug templates.

smnh commented 3 years ago

The reason we built Unibit is to allow Stackbit to transpile themes/sites written in Unibit/Nunjucks to other static site generators like Gatsby, Next.js, Hugo and Jekyll.

Behind the scenes, Stackbit parses Nunjuck templates and compiles them to other languages like React (Gatsby, Next.js), Go (Hugo) and Liquid (Jekyll).

Adding another template language to Unibit like Pug, will add additional complexity to be able to parse Pug and compile it to languages listed above. Otherwise, Unibit themes written with Pug will not be convertible to other static-site-generators which contradicts the main concept for which we created Unibit.