Esempio n. 1
0
 <A> String renderBody(A a) {
   StringBuilder sb = new StringBuilder();
   if (body != null) {
     body.setBuffer(sb);
     body.render(a);
     body.resetBuffer();
   }
   return sb.toString();
 }
Esempio n. 2
0
  @Override
  protected void doLayout() {
    beginDoLayout(sourceTemplate);
    ; // line 1, fooTag.html
    p("\n" + "<span>something</span>\n" + "\n"); // line 1, fooTag.html
    if (body != null) {
      body.setBuffer(getOut());
      body.render();
      body.resetBuffer();
    } // line 5, fooTag.html
    p(" "); // line 5, fooTag.html

    endDoLayout(sourceTemplate);
  }
Esempio n. 3
0
 @Override
 protected void doLayout() {
   // ------
   ; // line 1
   p("<p>\n" + "some text \n" + "</p>\n" + "<p>\n"); // line 1
   if (body != null) body.render(a + b);
   p("</p>\n" + "<p>\n" + "more text \n" + "</p>\n" + " "); // line 6
 }
Esempio n. 4
0
  @Override
  protected void doLayout() {
    beginDoLayout(sourceTemplate);
    ; // line 1, picka.html
    p("<p>\n" + "some text: "); // line 1, picka.html
    p(a); // line 3, picka.html
    p(" \n" + "</p>\n" + "<p>\n"); // line 3, picka.html
    if (body != null) {
      body.setBuffer(getOut());
      body.render(a + b);
      body.resetBuffer();
    } // line 6, picka.html
    p("</p>\n"); // line 6, picka.html
    String x = renderBody("xxx"); // line 8, picka.html
    p("["); // line 8, picka.html
    p(x); // line 9, picka.html
    p("]\n" + "<p>\n" + "more text: "); // line 9, picka.html
    p(b); // line 11, picka.html
    p("\n" + "</p>\n" + " "); // line 11, picka.html

    endDoLayout(sourceTemplate);
  }