Skip to content

Commit

Permalink
Fix #1145: fix documentation for Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Dec 17, 2019
1 parent ebeea05 commit 9a391c5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions docs/modules/ROOT/pages/languages/kotlin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ An integration written in Kotlin looks very similar to a Java one except it can

[source,kotlin]
----
from('timer:tick')
.process { e -> e.getIn().body = 'Hello Camel K!' }
.to('log:info');
from("timer:tick")
.process { e -> e.getIn().body = "Hello Camel K!" }
.to("log:info")
----

You can run it with the standard command:

```
kamel run example.kts
```

Camel K extends the Camel Java DSL making it easier to configure the context in which the integration runs using the top level _context_ block

[source,kotlin]
Expand Down

0 comments on commit 9a391c5

Please sign in to comment.