* @param data The Turbine RunData object.
* @return A clone of the WebContext needed by WebMacro.
*/
public WebContext getContext(RunData data)
{
WebContext newWC = wcPrototype.newInstance(data.getRequest(),
data.getResponse());
newWC.put( "data", data );
newWC.put( "link", new TemplateLink(data) );
newWC.put( "page", new TemplatePageAttributes(data) );
newWC.put( "formatter", new WebMacroFormatter(newWC) );
newWC.put( "content", new ContentURI(data) );
return newWC;
}