예제 #1
0
 @Override
 public void Render(Mustache_bfr bfr, Mustache_render_ctx ctx) {
   int subs_len = subs_ary.length;
   for (int i = 0; i < subs_len; ++i) {
     Mustache_tkn_itm sub = subs_ary[i];
     sub.Render(bfr, ctx);
   }
 }
예제 #2
0
 public static void Render_static(
     boolean inverted, Mustache_tkn_base tkn, Mustache_bfr bfr, Mustache_render_ctx ctx) {
   String key = tkn.Key();
   Mustache_tkn_itm[] subs_ary = tkn.Subs_ary();
   ctx.Section_bgn(key);
   while (ctx.Section_do(inverted)) {
     int subs_len = subs_ary.length;
     for (int i = 0; i < subs_len; ++i) {
       Mustache_tkn_itm sub = subs_ary[i];
       sub.Render(bfr, ctx);
     }
   }
   ctx.Section_end();
 }