Twig Templates in Craft

Basics of Templates in Craft

Learn how Craft stores templates, how template routing works, and get an introduction to the Twig syntax.

Here are all of the videos in Twig Templates in Craft:

1 Course Introduction We learn what the course is about and the topics covered. 05:51
2 Basics of Templates in Craft Learn how Craft stores templates, how template routing works, and get an introduction to the Twig syntax. 09:09
3 Basics of Twig Syntax We go over the basics of how the Twig syntax works and compare it to PHP. 16:24
4 What We're Building Let's quickly review the sample project we'll be working on in this course. 01:25
5 How Craft and Twig Work Together Where does Twig end and Craft begin? 11:47
6 Writing Twig Code in Craft Let's jump in and work with some code to put into practice the theory we've already learned about Craft and Twig template code. 18:39
7 Template Inheritance in Craft We can create on or more base layout templates and inherit them in other templates using the the extends feature in Twig. 09:55
8 Template Sharing with Includes and Embeds Sharing templates is easy in Craft with the include and embed tags. They will help you build reusable, modular templates. 07:57
9 Using Filters in Twig and Craft Filters in Twig and Craft allow you to alter data stored in a variable or as you output it. There are dozens of filters available in both Twig and Craft. 04:49
10 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. 08:08
11 Congrats, you did it! You made it all the way through the course. Let's reflect on your success and what you've learned! 00:54

Dozens of Courses Are Waiting

Invest in yourself, your career, and your ability to take knowledge and use it grow your business or earning potential.

Get everything in the catalog plus new videos every week. Just by signing up you get immediate access to hundreds of hours of learning.

Start CraftQuest

Image