コード例 #1
0
 public NateDocumentBackedEngine select(String selector) {
   selector = selector.trim();
   if (selector.startsWith(CONTENT_SELECTION_FLAG)) {
     return new NateDocumentBackedEngine(
         document.copyContentOf(selector.substring(CONTENT_SELECTION_FLAG.length())));
   }
   return new NateDocumentBackedEngine(document.copy(selector));
 }
コード例 #2
0
 public String render() {
   return document.render();
 }
コード例 #3
0
 public NateDocumentBackedEngine inject(Object data) {
   NateDocument newDocument = document.copy();
   NateTransformers.from(data).transform(newDocument);
   return new NateDocumentBackedEngine(newDocument);
 }