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 triallesak
6,260 PointsIs it ok to define an extend in one partial of folder A and use it (the extend) in another partial of folder B?
I tried it and it worked. I'm just not sure if it's bad practice. I'm wondering because Guil put his extends.scss file in the layout folder, while others(mixins, variables) get placed in the base folder. Thanks.
2 Answers
Daniel Gonzalez
22,105 PointsHi Lesak,
You can definitely do that but I believe Guil included his extends in the layout directory because they are "helpers" that pertain to the layout of the website and thus for reference should be included in the layout directory. I prefer to include my extends in a _helpers.scss file and included at the very top of my stylesheet. Below is a great article on the best uses of extends.
lesak
6,260 PointsHi Daniel. Thanks for your reply and the link to an interesting article. Your answer was very helpful.