Attribute substitution inside source block
Posted by Emmanuel Bernard on
URL: https://discuss.asciidoctor.org/Attribute-substitution-inside-source-block-tp406.html
Hey all,
I get that source blocks don't enjoy substitutions which would be dangerous OOTB but how would you solve such scenario
= Some getting started guide
Emmanuel
:version: 1.0.0.Final
To embed your library, use the following maven snippet
[source, xml]
.maven dependency
----
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-search</hibernate-search>
<version>{version}</version>
</dependency>
----
Today the {version} string is reproduced verbatim. how would you address this use case?
Emmanuel