aklemp commented on issue #4837:
URL: https://github.com/apache/camel-k/issues/4837#issuecomment-1774778443
Just for information, route templates can use Kamelets (so nesting of some
sort is possible).
```java
import org.apache.camel.builder.RouteBuilder;
public class TemplateExample extends RouteBuilder {
@Override
public void configure() throws Exception {
routeTemplate("myTemplate")
.templateParameter("period", "3s")
.templateParameter("message")
.from("kamelet:timer-source?period={{period}}&message={{message}}")
.log("${body}");
templatedRoute("myTemplate")
.parameter("message", "Hello templated world!");
}
}
```
```bash
kamel run TemplateExample.java
```
However, I'm still struggling to deploy the template separate from the
instantiating route (it doesn't find the template in its context).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]