Import JSLT fails #229
cvsudheer108
started this conversation in
General
Replies: 1 comment 1 reply
-
By default module files are loaded from the classpath. So if you have The API allows you to plug in code that resolves the names of module files into actual files, but whether that is exposed by Camel I don't know. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are invoking JSLT template from Camel:
from("direct:logic1-jslt")
.doTry()
.log("Step 1")
.setHeader("CamelJsltResourceUri").constant("mapping/template1.jslt")
.to("jslt:dummy?allowTemplateFromHeader=true&allowContextMapAll=true")
.log("StepStep1-jslt o/p: ${in.body}")
Now I have import inside template1.jslt:
import "util.jslt" as util
let obj = util:doSomething()
I am getting error: Cannot load resource 'util.jslt': not found
I tried : import "./util.jslt" as util. , but in vain.
Please let me know if you need more details.
Beta Was this translation helpful? Give feedback.
All reactions