🐕
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

Block Expansions

If you want to add an element, text, or a mixin call as the only child of another element, if, or for, block expansions can save you a line.

div: .multi-lvl-nesting: img(src="/the/internet.jpg")
div: span You can write text too!
<div><div class="multi-lvl-nesting"><img src="/the/internet.jpg"></div></div>
<div><span>You can write text too!</span></div>
PreviousNonce InjectionNextMixins

Last updated 1 year ago

Was this helpful?

🎓
➡️