You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/06/25 06:35:43 UTC
[camel] 05/12: Camel-Jslt: update docs reflecting
allowTemplateFromHeader introduction
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 446563bb50cb1b98de55a8314f9f9c083d1b3c46
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Jun 25 08:17:46 2020 +0200
Camel-Jslt: update docs reflecting allowTemplateFromHeader introduction
---
components/camel-jslt/src/main/docs/jslt-component.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/components/camel-jslt/src/main/docs/jslt-component.adoc b/components/camel-jslt/src/main/docs/jslt-component.adoc
index 4ecf4bd..4339e87 100644
--- a/components/camel-jslt/src/main/docs/jslt-component.adoc
+++ b/components/camel-jslt/src/main/docs/jslt-component.adoc
@@ -154,7 +154,7 @@ dynamically via a header, so for example:
---------------------------------------------------------------------
from("direct:in").
setHeader("CamelJsltResourceUri").constant("path/to/my/spec.json").
- to("jslt:dummy");
+ to("jslt:dummy?allowTemplateFromHeader=true");
---------------------------------------------------------------------
Or send whole jslt expression via header: (suitable for querying)
@@ -163,7 +163,7 @@ Or send whole jslt expression via header: (suitable for querying)
---------------------------------------------------------------------
from("direct:in").
setHeader("CamelJsltResourceUri").constant(".published").
- to("jslt:dummy");
+ to("jslt:dummy?allowTemplateFromHeader=true");
---------------------------------------------------------------------
Passing exchange properties to the jslt expression can be done like this