## #set ($images = "http://mina.apache.org/vysper/staticresources/images") #set ($siteroot = "http://mina.apache.org/vysper/") #set ($pageContentHeaderEnabled = false) ## #if ( $page.title.equals("Index") ) #set ($title = "Welcome to Apache Vysper Project!") #else #set ($title = $page.title) #end ## #macro (renderPage $title) #set($globalHelper = $action.getGlobalHelper()) #set($renderer = $globalHelper.getWikiStyleRenderer()) ## ## FIXME: Must be a more efficent way to find a page... ## #foreach ($child in $page.space.pages) #if ( ($child.title.equals($title)) && ( $child.contentStatus.equals("current") ) ) #set ($content = $renderer.convertWikiToXHtml($child.toPageContext(), $child.content).trim()) ## ## HACK: Remove the leading

and trailing

## #set ($content = $content.replaceAll("^<[pP]>|$", "") ) ##set ($content = $content.substring(3, $content.length())) ##set ($end = $content.length() - 4) ##set ($content = $content.substring(0, $end)) $content #end #end #end ## $title - Apache Vysper
$body