Look at the transform(..) - method in this file. There are already some lines starting with
1velocityContext.put("variableName", variableValue)
You can assign any name for variableName. This can be used directly in the template by
1$variableName
For example: You declare in JournalVmUtil.java
1String xy = "a string";
2//now lets forward this string to our template engine so we can use it in a Web Content Template
3velocityContext.put("myString", xy);
Deploy the bundle and create a new wcm template with
1$myString
Save the template, create a web content based on this template. The page with your wcm content will return
Edit: I'm using LR 5.2.3 for this...
Be kell jelentkezni ahhoz, hogy ez helytelenként legyen megjelölve.