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 trialCatalina Villalonga
5,760 PointsNotes on pug templates
just for myself im trying to add notes with // to the pug templates but everytime I do it it throws an error. is it not possible or do I have to do it in some special way?
2 Answers
Harald N
15,843 PointsHi, I found this site with documentation for pug (https://pugjs.org/language/comments.html), and instead of '//' this should work '//-' note that the hyphen is the difference.
I hope this helps, if so mark this question as answered. :D
Catalina Villalonga
5,760 PointsThank you very much Harald !
chrisshadrach
11,058 PointsYou may already be using it, but the shortcut "CTRL" + "/ " in Visual Studio Code automatically adds the "-" for you. Saves you fortgetting, sure other editors will do the same.