private void executeElseNode(JadeModel model, IndentWriter writer, JadeTemplate template) { if (elseNode != null) { elseNode.execute(writer, model, template); } }
public override void execute(IndentWriter writer, JadeModel model, JadeTemplate template) //throws JadeCompilerException { writer.newline(); writer.append("<"); writer.append(name); writer.append(Attributes(model, template)); if (isTerse(template)) { writer.append(">"); return; } if (isSelfClosing(template) || (selfClosing && isEmpty())) { writer.append("/>"); return; } writer.append(">"); if (hasTextNode()) { textNode.execute(writer, model, template); } if (hasBlock()) { writer.increment(); block.execute(writer, model, template); writer.decrement(); writer.newline(); } if (hasCodeNode()) { codeNode.execute(writer, model, template); } writer.append("</"); writer.append(name); writer.append(">"); }