unclebob/fitnesse — pull request #54 by amolenaar (2011-11-30 07:02:42+00:00)
Title: Moved page templating to Velocity templates

Hi,

In attached commits changes have been made to generate the pages using Velocity templates, rather than from Java object structures.

I created one master template (skeleton.vm), which contains all the HTML boilerplate for the responders. The responders can either provide a template or a Java object tree to be parsed as "main" part of the page.

pageHead.vm and pageFooter.vm are replaced by skeleton.vm so all templates are rendered in a consistent manner.

These commits supersedes pull request #50, which will be closed because of this request.

Motivation for change:

- The layout of FitNesse is a bit outdated. By moving functionality to templates it's easier to update the layout to HTML 5 for example, use jQuery instead of the ad-hoc peaces.
- Easier to hook in new functionality, like auto completion in the edit responder.
- DRY: pages were rendered half through Java, half through Velocity.