The Craft 6 beta is out. Learn what's new and how Craft 6 works on Laravel. Explore Craft 6

Creating a Macro in Twig

Macros are the Twig version of functions. Just like you would write a function in PHP to do or create something, you can use a Twig macro to generate some output.

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch. A CraftQuest Premium feature.

Sign up for Premium
Topic
Instructor
Level
Beginner
Date published
May 02, 2018