For example, lets have a Java constant in some class
public class MyClass{
public static final String ENDPOINT="http://example.com"
}
and lets try to describe that class in AsciiDoctor (corporate docs reasons)
==== My class
..... some descripton .....
It is exposed trough http://example.com
Now every time I change the endpoint, I have to update docs manually as well (IDE find-and-replace will do the trick obviously). Is there a way to include Java constant into the AsciiDoc so I don't have to copy its value into the docs?
I would gladly see something like {import my.package.MyClass#ENDPOINT}
or something similiar.