how to do custom velocity directive with localized name. Such directives is ignored now. For example:
class MyDirective extends Directive {
@Override
public String getName() {
return "Пример";
}
@Override
public boolean render(InternalContextAdapter context, Writer writer, Node node)
throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException {
writer.write("example");
return true;
}
}
Input text: #Пример()
Expected example
, but got unmodified text #Пример()