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 trial
Victor Rodriguez
15,015 PointsHow can Spark render HTML without a template engine?
I like Spark. It is simple and fast to develop for. Only one problem. I don't need server-side templating. So If I want to serve plain html only, is there a way to serve a .html instead of .hbs?
Right now I am using
response.redirect("/index.html");
to server my index file and returning an empty string. This feels dirty. Is there a better way?
Even the Spark Docs don't seem to have information on this. I'd rather not push plain HTML through a templating engine for no reason.