예제 #1
0
 public Rendering render(RefImageNode node, String url, String title, String alt) {
   Rendering rendering = new Rendering(url, alt);
   return StringUtils.isEmpty(title) ? rendering : rendering.withAttribute("title", encode(title));
 }
예제 #2
0
 public Rendering render(ExpImageNode node, String text) {
   Rendering rendering = new Rendering(node.url, text);
   return StringUtils.isEmpty(node.title)
       ? rendering
       : rendering.withAttribute("title", encode(node.title));
 }