🐕About Corgi

Corgi is an HTML template language, inspired by pug (hence the name), for Go. Just like pug, corgi also uses code generation to generate its templates.

Just a quick note before you get started reading: When you see examples of corgi code you'll often also see the resulting HTML. This HTML is pretty printed and further formatted to increase glanceability. In reality, whitespace is formatted as described in Writing Text.

The syntax is very similar to pug and those familiar with it will quickly feel at home. Do note though, that despite many similarities, corgi does not aim to be a 1:1 pug clone. Instead corgi attempts to be a template engine that feels Go-like and is easily readable for any Go developer, while, at its foundation, still using the syntax of pug.

Last updated