- What is a Template Engine? 3:45
- Installing Twig 4:43
- Twig View 5 questions
- Template Language 4:28
- Escaping and Comments 3:53
- Twig Syntax 5 questions
- The Structure of Control 6:13
- Working with Date 3:17
- Filters and Functions 7 questions
- Combining Templates 7:09
- Adding a Second Page 3:23
- Sharing 6 questions
- Custom Functions with Macros 4:22
- Importing and Using Macros 3:28
- Multiple Macros 2:51
- Custom Functions 5 questions
- Extending Twig and Beyond 1:51
- Your next step 1 question
Quiz Question 1 of 5
Which of the following is NOT true when defining a macro?
Choose the correct answer below:
-
A
Macros only know about the variables that have been passed.
-
B
You MAY set a default value when defining an argument.
-
C
If extra positional arguments are passed to a macro, they end up in the special varargs variable as a list of values.
-
D
If you want an argument to be optional, you MUST define a default value