TheVasari/Lacuna-Web-Client-jQuery — pull request #2 by icydee (2013-05-10 12:53:30+00:00)
Title: Template

Vas.
I have implemented a templating system for the HTML, I have (so far) done this for game.js and building.js.

The idea is to keep the HTML markup out of the javascript. It also makes it *much* easier without having to worry about issues with quotes, joining strings, etc. (something I hate about the current YUI implementation).

Also, I am keeping any code out of the templates (other than simple looping and conditionals).

You will see what I have done with the code so far.

Oh yes, I replaced all tabs with 4 spaces! (I know we spoke about this, you may want to merge to master soon otherwise there will be hell to pay with merge conflicts!)

It would be a good time to switch your editor to insert 4 spaces whenever you hit the tab :)

- Iain