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 trialHassanain Anver
4,902 PointsA template that extends another one cannot have a body in "contact.twig" Need HELP!
i successfully made my index.html in to a main.twig file, and i used it as a template already, but now I'm trying to create a second template and its giving me the following error:
A template that extends another one cannot have a body in "contact.twig"
4 Answers
pi R
12,720 PointsHi dude ! Did you delete the tags in your contact.twig file? Take a snapshot of your workspace if still in trouble ;) will be usefull for us to check your code.
Hassanain Anver
4,902 Pointssorry the extends code is sticking out but thats my current code for contact.twig
pi R
12,720 PointsTry to put your endblock AFTER the section closing tag.
Hassanain Anver
4,902 Pointsgot it fixed! I missed out on removing the classes before, which were already on the main.twig.Thanks mate!
Ted Sumner
Courses Plus Student 17,967 PointsPlease post your fixed code for future reference.
Hassanain Anver
4,902 PointsHassanain Anver
4,902 PointsTed Sumner
Courses Plus Student 17,967 PointsTed Sumner
Courses Plus Student 17,967 PointsFormatted code quote.