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 trialLauren Hansson
5,754 PointsAuthenticating a form w/out pug?
Hey everyone, I'm on the express/MonogoDB video course right now and have a form already created with HTML for a separate project. Does anybody know how I would apply the routing methods used in this vid to HTML? Thanks!
3 Answers
Balazs Peak
46,160 PointsI can't see which video are refering to. Please provide links!
Lauren Hansson
5,754 Pointshttps://teamtreehouse.com/library/creating-a-registration-form-with-pug-jade-2 If I dont want to convert my files to pug how would I use the html/css that I already have? currently, I am getting an: No default engine was specified and no extension was provided. Thanks!
Balazs Peak
46,160 PointsAt the first glance, it looks like the form is rendered by express, using the pug file.
Rendering occurs when there is no actual html, but some sort of other file which are able to create html. So if you want to use your plain html, you'll need to find another method which is not rendering but simply using the HTML file. I'm pretty confident that you'll find the solution in the Express.JS documentation.