nationalrail.generateDepartureHtml() currently takes the departure object and returns a string of HTML which is then just placed into the Jade template. That's a silly thing to do. I think Jade should be given the departure object and the rendering should happen there.
nationalrail.generateDepartureHtml() currently takes the departure object and returns a string of HTML which is then just placed into the Jade template. That's a silly thing to do. I think Jade should be given the departure object and the rendering should happen there.