Template files · Question 9 of 12
Which variables are available in a partial?
1 answer is correct. Medium
Show answer
Answer
- A Only those passed via arguments
Explanation
Partials are self-contained: they only see what f:render passes via arguments, all variables if needed with {_all}. Layouts, in contrast, see all variables of the template.