* @return processed template in a String
*/
public void doBuild( RunData data ) throws Exception
{
/* Get the context needed by WebMacro */
WebContext context = getContext( data );
/* Screen results */
String returnValue = "";
/*
* First, generate the screen and put it in the context so
* we can grab it the layout template.
*/
ConcreteElement results = ScreenLoader.getInstance()
.eval(data, data.getScreen());
if (results != null)
returnValue = results.toString();
/* variable for the screen in the layout template */
context.put("screen_placeholder", returnValue);
/* variable to reference the navigation screen in the layout template */
context.put("navigation", new TemplateNavigation( data ));
/* Grab the layout template set in the WebMacroSitePage. If null, then
* use the default layout template (done by the TemplateInfo object) */
String templateName = data.getTemplateInfo().getLayoutTemplate();