Templating for Performance in Craft CMS

A set of templates that demonstrate good vs. poor practices when outputting elements in templates.

Watch the presentation at https://youtu.be/RGK1JHDxHhY.

Requirements

Craft CMS 3.0.0 or later.

Usage

  1. Set up a section with the slug articles and the fields order (number field) and relatedEntries (entries field).
  2. Copy the templates in the templates folder to your project.
  3. Optionally create and import a feed using the FeedMe plugin pointed at the feed.twig template.
  4. Visit http://your-domain/slides in your browser.

License

All code is licensed under the MIT License with attribution.

Created by PutYourLightsOn.