if ( serverConfig.pages != null ) {
if ( ! FileOps.exists(serverConfig.pages) )
serverLog.warn("No pages directory - "+serverConfig.pages) ;
String base = serverConfig.pages ;
Map<String, Object> data = new HashMap<String, Object>() ;
data.put("mgt", new MgtFunctions()) ;
SimpleVelocityServlet templateEngine = new SimpleVelocityServlet(base, data) ;
addServlet(context, templateEngine, "*.tpl", false) ;
}
}