This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
commit dc610a59cd7ed16128deaa1ed8847aa90d4e3158 Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Jun 25 07:19:52 2020 +0200 CAMEL-15239 - camel-velocity header option does not conform to documentation --- components/camel-velocity/src/main/docs/velocity-component.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/camel-velocity/src/main/docs/velocity-component.adoc b/components/camel-velocity/src/main/docs/velocity-component.adoc index e9fc32f..853a029 100644 --- a/components/camel-velocity/src/main/docs/velocity-component.adoc +++ b/components/camel-velocity/src/main/docs/velocity-component.adoc @@ -250,7 +250,7 @@ should use dynamically via a header, so for example: --------------------------------------------------------------------------- from("direct:in"). setHeader("CamelVelocityResourceUri").constant("path/to/my/template.vm"). - to("velocity:dummy"); + to("velocity:dummy?allowTemplateFromHeader=true""); --------------------------------------------------------------------------- It's possible to specify a template directly as a header @@ -260,7 +260,7 @@ the component should use dynamically via a header, so for example: --------------------------------------------------------------------------------------------------------------- from("direct:in"). setHeader("CamelVelocityTemplate").constant("Hi this is a velocity template that can do templating ${body}"). - to("velocity:dummy"); + to("velocity:dummy?allowTemplateFromHeader=true""); --------------------------------------------------------------------------------------------------------------- == The Email Sample