Flexible Twig Templates in Craft 3

Creating the Entry Handler Template

So far into the course and we're just doing Entry templates? Yes, but all of this prep work is going to speed things up. Let's make the entries come alive!

Back in the con­trol pan­el, if we look at the sec­tions in the site, we notice that all of the sec­tions have the same entry tem­plate defined, just the tem­plate called entry, which lives in the root of the templates directory.

This is because the entry tem­plate is the han­dler tem­plate that han­dles all of the indi­vid­ual entry requests for all sec­tions in the site. Because we keep it very gener­ic, we only need to cre­ate one of those. We can cre­ate sup­port­ing tem­plates that do more spe­cif­ic implementation.

Flexible Twig Templates in Craft 3 is made up of the following videos: