Variable Substitution Directives
@var
Inserts the given variable into the text.
Example:
The Scala Version is @var[scala.version].
results in:
The Scala Version is 2.12.20.
@@@vars
Allows to insert property values in verbatim blocks.
For example,
@@@vars
```scala
println("The project version is $version$")
```
@@@
(added extra indentation to be able to show the example)
would render to:
println("The project version is 0.10.7+23-064e6f3f-SNAPSHOT")
Customize delimiters with @@@vars
You can customize the delimiters if $
already has a special meaning inside the verbatim block:
@@@vars { start-delimiter="*&*" stop-delimiter="&*&" }
```scala
println("The project version is *&*version&*&")
```
@@@
renders to:
println("The project version is 0.10.7+23-064e6f3f-SNAPSHOT")
The source code for this page can be found here.