🐕
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?

  1. Learning Corgi

Comments

Corgi distinguishes between two types of comments:

HTML comments are included in your HTML while corgi comments are not.

p Hello
//- I'm included
p World!
// However, I am not.
//
  As is
  this block
<p>Hello</p>
<!--I'm included-->
<p>World!</p>



Unlike in Go, comments must be the only item in their line. The below isn't allowed.

p // this is a p
  > ^ is not allowed
PreviousThe Standard LibraryNextFilters

Last updated 1 year ago

Was this helpful?

🎓
💬