Closed mariotoffia closed 3 years ago
This is actually already possible using asciidoc - but since code file is often in other directory than the output asciidoc file - I need to add a way to inject macros e.g. ${current} would be the current file being parsed (fully qualified path).
in this way it would be possible to use include::${goasciidoc:current:fq}[tag=the-tag,indent=0] (see asciidoc documentation abount tags).
Fixed in v0.4.1
E.g. use @methodname to include a certain method in a [source,go] .... Copy full method definition ....
It should also be templated in order to allow for overrides