Hi Adam, On Sun, Sep 11, 2016 at 10:19 PM, Adam Henderson <[email protected]> wrote: > .../content/products/product1 > - description : string = “This is the description of Product 1, hurry > - discount of $JCR[‘/content/promotions/discounts:holidayspecialdiscount’]% > applies!” ...
> I would like Sling to resolve the $JCR token so that what is shown to the > user would be: > > "This is the description of Product 1, hurry - discount of 10% applies!" ... I don't think we have a component that does this out of the box. I suppose you could approach it by treating that string as input for a templating engine like Velocity of Thymeleaf, but it means giving control over scripts to whoever can write to that product1 node, so you have to be careful to avoid security issues. -Bertrand
