protected String template ( String view ) { final Enumeration < String > attrs = getAttrNames ( ) ; final Map < String , Object > root = Maps . newHashMap ( ) ; while ( attrs . hasMoreElements ( ) ) { String attrName = attrs . nextElement ( ) ; root . put ( attrName , getAttr ( attrName ) ) ; } return Freemarkers . processString ( view , root ) ; }
Render view as a string