1

有没有办法在AsciiDoc中执行内联条件包含宏?

我希望能够做类似的事情:

控件的数据源属性是 ifdef::wpf[ DataContext] ifdef::web[ dataSource] 并接受视图模型对象的集合。

是否有语法变化可以使这样的事情成为可能?

4

1 回答 1

1

使用asciidoctor时有可能,不知道它们是 python 处理器。

截至此处,您可以看到它在测试工具中的使用方式。

On our quest we go...
ifdef::holygrail[There is a holy grail!]
There was much rejoicing.
于 2015-07-30T01:58:32.820 回答