This is an automated email from the ASF dual-hosted git repository.

fpapon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 75d1850  Fix bracets espace from vtl template
     new 8a37ed3  Merge pull request #85 from fpapon/fix
75d1850 is described below

commit 75d1850b5b3811c28015fa75c71da70225766eb6
Author: francois papon <[email protected]>
AuthorDate: Sat Aug 14 16:10:30 2021 +0200

    Fix bracets espace from vtl template
---
 configuration.md.vtl | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/configuration.md.vtl b/configuration.md.vtl
index c21650f..5767d0a 100644
--- a/configuration.md.vtl
+++ b/configuration.md.vtl
@@ -348,15 +348,13 @@ anObject.map = $objectKey1:$objectValue1, 
$objectKey2:$objectValue2
 
 You can use variable interpolation when defining values. Supported types are 
environment variables, system properties and constants.
 
-For constants, use `${const:com.example.YourClass.CONSTANT_NAME}`, for 
environment variables and system properties, use `${ENV_VARIABLE_NAME}` or 
`${system.property}`.
+For constants, use 
<code>$&#123;const:com.example.YourClass.CONSTANT_NAME&#125;</code>, for 
environment variables and system properties, use `${ENV_VARIABLE_NAME}` or 
`${system.property}`.
 
 System properties and environment variables are lookup up in that order.
 
-Default values are supported in the form 
`${const:com.example.YourClass.CONSTANT_NAME:-default_value`}, or 
`${VARIABLE_NAME:-default_value}`, as in:
+Default values are supported in the form 
<code>$&#123;const:com.example.YourClass.CONSTANT_NAME:-default_value&#125;</code>,
 or <code>$&#123;VARIABLE_NAME:-default_value&#125;</code>, as in:
 
-``` ini
-myRealm.connectionTimeout = ${REALM_CONNECTION_TIMEOUT:-3000}
-```
+<pre><code class="ini">myRealm.connectionTimeout = 
$&#123;REALM_CONNECTION_TIMEOUT:-3000&#125;</code></pre>
 
 Which will be interpreted as `myRealm.connectionTimeout = 3000` if no system 
property or environment variable `REALM_CONNECTION_TIMEOUT` is defined.
 

Reply via email to