标签: include default-value asciidoctor
是否可以为include指令设置默认值?
include
假设我的.adoc文件中有这样一行:
.adoc
include::{snippets}/some-snippet.adoc[]
如果文件{snippets}/some-snippet.adoc不存在,我想要显示默认值。想到这样的事情:
{snippets}/some-snippet.adoc
include::{snippets}/some-snippet.adoc[default='a snippet of something']
但我在docs中找不到类似内容。