🐕
Corgi
  • 🐕About Corgi
  • 🎓Learning Corgi
    • 📂File Structure
    • 🎉Getting Started
    • 🔟Code
    • 📄Arrow Blocks
    • 🪄If and Switch
    • ✏️Interpolation
    • 🔁For
    • 🤝Attributes
    • 🎭Expressions
    • 👮Security and Escaping
    • 💉Nonce Injection
    • ➡️Block Expansions
    • ➕Mixins
    • 📚Libraries
    • ✨The Standard Library
    • 💬Comments
    • ⛓️Filters
    • 🖨️Include
    • 👪Inheritance (Extending)
    • ⚡Breaking Changes
Powered by GitBook
On this page

Was this helpful?

About Corgi

NextFile Structure

Last updated 1 year ago

Was this helpful?

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 .

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.

🐕
Writing Text