Motivation |
BACK | UP | NEXT |
Why use WebMacro?WebMacro separates concerns about program code from concerns about the way a page looks:
WebMacro contains a very focused template script language. It gives you a lot of power to lay out your page, but does not allow you to write arbitrary program code: a template writer never has to look at program code. At the same time, it provides a powerful class analyzer that can connect up ordinary Java objects with those templates: since WebMacro does all the work in hooking up your Java objects with the template, programmers never have to think about layout--they can stick to writing straight-forward ordinary pure Java code. This enforced separation of concerns ensures that programmers and template authors can work in parallel, and stay out of each others way. Templates are clean representations of the page view they construct; and program code is completely free of any HTML/view related clutter. | |
BACK | UP | NEXT |