Can't see how is this better than using sweave
Ximera allows authors to write online interactive texts, that can serve as the HW system for a class.
The student's work can be directly sent to the grade book via LTI.
Moreover, you can simultaneously produce a PDF that looks like a traditional text.
http://www.lulu.com/shop/the-ohio-state-university-math-depa...
Which nobody needs to buy, since the PDF generating the text is freely available.
An activity in Ximera has state, and this state is synchronized (via Fraser's differential synchronization) with all open clients, so the instructor can watch a student while they work in Ximera, and even edit the page alongside them.