}
if ("expressionLanguage".equalsIgnoreCase(tok.getDirective())) {
return parseExpressionLanguageDirective(tok);
}
if ("debug".equalsIgnoreCase(tok.getDirective())) {
return new DebugDirective();
}
if ("extend".equalsIgnoreCase(tok.getDirective()) || "extends".equalsIgnoreCase(tok.getDirective())) {
if (template.hasChildren()) {
throw new TemplateParsingException("extend directive should be the first element of the template", tok.getLineNo(), tok.getColumn());
}