Engine options
-
Groovy
import org.asciidoctor.gradle.model5.jvm.toolchains.AsciidoctorjToolchain
asciidoc {
toolchains {
asciidoctorj(AsciidoctorjToolchain) {
engineOptions {
eruby = 'erb' (1)
catalogAssets = true (2)
sourceMap = true (3)
}
}
}
}
1 | The template engine to use.
It is a case-insensitive string and has to be one of erb , erubi , or erubis . |
2 | Whether to capture images and links in the reference table. |
3 | Whether to track file and line numbers for parsed blocks. The default is to track. There is a slight performance improvement, by turning it off. |