YoVDO

Twig Templating for Friendly Frontend Devs

Offered By: SymfonyCasts

Tags

Twig Courses Web Development Courses Programming Courses HTML Courses

Course Description

Overview

Welcome to Twig! If you're a frontend developer and you're using Twig in your project, then this course is for you! We'll talk about how to use Twig from the ground-up, clearly pointing out its syntax and then graduating to some really neat and advanced tricks. Twig is awesome to work with, so don't just use Twig, master it!

We'll learn:

  • The Twig syntaxes: {{ }} and {% %}
  • Functions and filters
  • Debugging with the dump() function
  • Handling arrays and objects
  • Template Inheritance (extends & block)
  • Tests, looping tricks, and shortcut syntaxes
  • Macros (Twig functions)
  • Whitespace control, escaping and more!

Ok, let's go!


Syllabus

  • Twig: The Basics
  • Functions, Filters and Debugging with dump
  • Using Objects and Array Keys
  • Using a Layout: Template Inheritance
  • Including other Templates
  • If Statements with "Tests"
  • The for "loop" and inline "if" Syntax
  • Mistakes and Macros
  • Extra Credit Tricks and HTML Escaping

Taught by

Ryan Weaver and Leanna Pelham

Related Courses

Web Development
Udacity
Programming Languages
University of Virginia via Udacity
Building a Basic Website
University of Massachusetts Amherst via Independent
Web-Technologien
openHPI
iDESWEB, Introducción al desarrollo web
Miríadax