From 43cc18a5a1ed1821c9e182a628445dddd2ee424b Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Thu, 11 Apr 2024 14:00:46 +0200 Subject: [PATCH] Use literal monospace in SpEL templating section Prior to this commit, the text `#{ }` was displayed as { } with a bright green background. This commit addresses this by making use of Asciidoc's literal monospace feature: `+#{ }+`. --- .../ROOT/pages/core/expressions/language-ref/templating.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/core/expressions/language-ref/templating.adoc b/framework-docs/modules/ROOT/pages/core/expressions/language-ref/templating.adoc index d8e8b39abb..1603fe0db2 100644 --- a/framework-docs/modules/ROOT/pages/core/expressions/language-ref/templating.adoc +++ b/framework-docs/modules/ROOT/pages/core/expressions/language-ref/templating.adoc @@ -3,7 +3,7 @@ Expression templates allow mixing literal text with one or more evaluation blocks. Each evaluation block is delimited with prefix and suffix characters that you can -define. A common choice is to use `#{ }` as the delimiters, as the following example +define. A common choice is to use `+#{ }+` as the delimiters, as the following example shows: [tabs] @@ -32,7 +32,7 @@ Kotlin:: ====== The string is evaluated by concatenating the literal text `'random number is '` with the -result of evaluating the expression inside the `#{ }` delimiters (in this case, the +result of evaluating the expression inside the `+#{ }+` delimiters (in this case, the result of calling that `random()` method). The second argument to the `parseExpression()` method is of the type `ParserContext`. The `ParserContext` interface is used to influence how the expression is parsed in order to support the expression templating functionality.