#** * Website and page information and display. * @author Lance Lavandowska (conversion to Velocimacros) *# #** * Sets content type header for page, must be first line in template. **# #macro( setContentType $ctype ) $pageHelper.setContentType($ctype)## comment here kills trailing whitespace #end #** * Set the META tag for ContentType. We do this in addition to * setting the Response header because the header does not get * cached. So in order to maintain the ContentType we must present * it inside the rendered page itself. **# #macro( showContentType $ctype ) #end #** * Display website title. *# #macro( showWebsiteTitle )$model.weblog.name#end #** * Display website description. *# #macro( showWebsiteDescription )$model.weblog.description#end #** * Include a page and evaluate it as a template. * @param pageName Name of page to be included. *# #macro( includePage $pageName ) ## replaced by roller 3.0 version #includeTemplate($model.weblog $pageName) #end #** * Show name of current page. *# #macro( showPageName )$model.weblogPage.name#end #** * Show current page's description. *# #macro( showPageDescription )$model.weblogPage.getDescription()#end #** * Show current page's update time. *# #macro( showPageUpdateTime )$model.weblogPage.lastModified#end #** * Shows weblog category chooser with support for hierarhical categories. * To style completely with CSS, set $divider to "" (empty string). * @param parentCategory Name of top-level category to display. * @param divider The text to place between each category. *# #macro( showWeblogSubcategoryChooser2 $parentCategory $divider )