Render a www directory
HectorIX opened this issue · comments
I'm trying to build a simple website that nickel talk to javascript and vice-versa.
First of all, is that possible? Secondly, I have seen some examples that html is rendered (but I am not sure how to render the whole www directory).
I have a more detailed description of this question in SO:
https://stackoverflow.com/questions/44766393/how-to-render-a-webpage-using-the-nickel-framework
======================
FIX: the answer to the above question is:
After the server.get("/login", tmpl_handler);
you have to utilize again server.utilize(StaticFilesHandler::new("www/"));
And its working:)