public Template getTemplate ( String path , String encoding ) throws Exception { Object siteId = get ( "__siteid__" ) ; if ( siteId != null ) { path = siteId + ":" + path ; } if ( encoding == null ) { return RuntimeSingleton . getRuntimeServices ( ) . getTemplate ( path ) ; } else { return RuntimeSingleton . getRuntimeServices ( ) . getTemplate ( path , encoding ) ; } }
Fetches a Velocity template that can be used for later formatting . The template is read with the specified encoding or the default encoding if encoding is null .