@Override public String closeBlock() throws ParseException { if (blocks.isEmpty()) throw new ParseException(cb.getTemplateClass(), currentLine(), "No open block found"); IBlockHandler bh = blocks.pop(); return null == bh ? "" : bh.closeBlock(); }
@Override public void openBlock(IBlockHandler bh) { bh.openBlock(); blocks.push(bh); }