353354355356357358359360361362363
/* * now render, and let any exceptions fly */ nodeTree.render( ica, writer ); } finally { ica.popCurrentTemplateName(); }
354355356357358359360361362363364
351352353354355356357358359360361
317318319320321322323324325326327
161162163164165166167168169170171
InternalContextAdapterImpl ica = new InternalContextAdapterImpl(context); ica.pushCurrentTemplateName(template); try { nodeTree.init(ica, velocityRuntime); nodeTree.render(ica, out); return out.toString(); } finally { ica.popCurrentTemplateName(); }
159160161162163164165166167168169
199200201202203204205206207208209
preRender(ica); /* * now render, and let any exceptions fly */ nodeTree.render( ica, writer ); } catch (StopCommand stop) { if (!stop.isFor(this)) {
191192193194195196197198199200201
198199200201202203204205206207208
try { /* * now render, and let any exceptions fly */ nodeTree.render( ica, writer ); } catch (ParseErrorException pex) { // convert any parsing errors to the correct line/col Info info = new Info( templateName, node.getLine(), node.getColumn() );