You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<apicurio-common-rest-client.version>0.1.18.Final</apicurio-common-rest-client.version> <!-- must be the version Apicurio Registry uses -->
199
199
<testcontainers.version>1.21.1</testcontainers.version> <!-- Make sure to also update docker-java.version to match its needs -->
200
200
<docker-java.version>3.4.2</docker-java.version> <!-- must be the version Testcontainers use: https://central.sonatype.com/artifact/org.testcontainers/testcontainers -->
<1> The local variable is initialized with an expression that can also represent a <<literals,literal>>, i.e. `isActive=false` and `age=10`.
1020
1022
<2> The infix notation is only supported if parentheses are used for grouping, e.g. `price=(order.price + 10)` is equivalent to `price=order.price.plus(10)`.
1021
-
<3> Keep in mind that the variable is not available outside the `let` section that defines it.
1023
+
<3> Variables are not available outside the `let` section.
1024
+
1025
+
The variables are not available outside the defining `let` section.
1026
+
However, the end tag is optional, if missing then the section ends where the parent section ends.
1027
+
1028
+
.Let with optional end tag
1029
+
[source,html]
1030
+
----
1031
+
<ul>
1032
+
{#for item in items}
1033
+
{#let price=item.price} <1>
1034
+
<li>{price}</li>
1035
+
{! a synthetic {/let} is added here automatically !}
1036
+
{/for}
1037
+
</ul>
1038
+
{price} --> BOOM! <2>
1039
+
----
1040
+
<1> The local variable `price` is initialized with expression `item.price`.
1041
+
<2> Variable `price` is not available outside the `let` section.
1022
1042
1023
1043
If a key of a section parameter, such as the name of the local variable, ends with a `?`, then the local variable is only set if the key without the `?` suffix resolves to `null` or _"not found"_:
Copy file name to clipboardExpand all lines: docs/src/main/asciidoc/vertx-reference.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -704,7 +704,7 @@ The `EventBus` object provides methods to:
704
704
[source, java]
705
705
----
706
706
// Case 1
707
-
bus.sendAndForget("greeting", name)
707
+
bus.send("greeting", name)
708
708
// Case 2
709
709
bus.publish("greeting", name)
710
710
// Case 3
@@ -730,7 +730,7 @@ Read xref:./virtual-threads.adoc[the virtual thread guide] for more details.
730
730
731
731
=== Use codecs
732
732
733
-
The https://vertx.io/docs/vertx-core/java/#event_bus[Vert.x Event Bus] uses https://vertx.io/docs/vertx-core/java/#_message_codecs[codecs] to _serialize_ and _deserialize_ message objects.
733
+
The link:++https://vertx.io/docs/vertx-core/java/#event_bus++[Vert.x Event Bus] uses link:++https://vertx.io/docs/vertx-core/java/#_message_codecs++[codecs] to _serialize_ and _deserialize_ message objects.
734
734
Quarkus provides a default codec for local delivery.
735
735
This codec is automatically used for return types and message body parameters of local consumers, i.e. methods annotated with `@ConsumeEvent` where `ConsumeEvent#local() == true` (which is the default).
Copy file name to clipboardExpand all lines: extensions/amazon-lambda/common-deployment/src/main/java/io/quarkus/amazon/lambda/deployment/LambdaUtil.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ public static void writeFile(OutputTargetBuildItem target, String name, String o
Copy file name to clipboardExpand all lines: extensions/container-image/container-image-jib/deployment/src/main/java/io/quarkus/container/image/jib/deployment/JibProcessor.java
0 commit comments