How to render asciidoc filename in asciidoctor template?

时间:2015-11-12 11:54:16

标签: asciidoctor

I have a asciidoctor template similar to this one:

https://github.com/asciidoctor/asciidoctor-backends/blob/asciidoctor-v0.1.4/erb/html5/document.html.erb

I would like to include a link into my documents which points to the asciidoc file that was used to generate the document.

Is there a way to access the asciidoc filename within my template?

I'm using the asciidoctor-maven-plugin to render my documents.

1 个答案:

答案 0 :(得分:0)

通过查看built-in data attributes,我认为您正在寻找{docfile}(评估取决于文档的处理方式以及处理的时间和地点。)

对我而言,它适用于asciidoctor-maven-plugin(我获取文件的绝对路径)但不在chrome预览中。