I was working on something similar but with a markdown like syntax instead of latex. Project is still in initial stages though.
Anyways, looks pretty cool!
I find that except for math I use a minimal amount of features of latex, but a lot of work and weird code to display simple things.
I just don't get why there isn't something that does a few things well and nothing else.
https://github.com/vpj/docscript
Will add a command line compiler and stuff soon. We are using it to generate documents at our startup. So it will be in active development for sometime.