Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Although their capabilities are limited, template languages use the same basic concepts as any other programming language: variables, loops, conditionals, and functions. We'll take a look at the syntax Twig uses to build our templates. We'll also explore how autoescaping works (or doesn't work) on different variables and display.
Documentation
Twig for Template Designers describes the syntax and semantics of the template engine and will be most useful as reference to those creating Twig templates.
Twig Reference Browse the online reference to learn more about built-in features.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up