danielthepope / trntxt

:steam_locomotive::train::train: A data-friendly UK train times site
https://trntxt.uk
MIT License
36 stars 9 forks source link

Use Jade to render the routes #20

Closed danielthepope closed 9 years ago

danielthepope commented 9 years ago

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.