Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTatenda Andrew Kwandara
18,322 PointsUse the following code to create a custom Twig function named "review", which will displaying the detai of a review. Tls
please help me i have tried all i can
1 Answer
Ran Wang
Full Stack JavaScript Techdegree Graduate 32,191 Points{% macro review(data) %}
// to access items inside an array, use {{array.itemName}}, so the code should be like
{{data.item1}}
{% endmacro %}
Justice Munyanyi
14,165 PointsJustice Munyanyi
14,165 PointsDid you manage to answer the question? I am also stuck there.