Exemplo n.º 1
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();
 }
Exemplo n.º 2
0
 @Override
 public void Render(Mustache_bfr bfr, Mustache_render_ctx ctx) {
   String key = this.Key();
   ctx.Render_variable(bfr.Escape_(Bool_.N), key);
 }