is there a way to adapt a resource to custom model class in sightly?
I have a custom model and i want to adapt a resource to it in sightly html code not in java.
Solved! Go to Solution.
A function is returning me an object which is of type "Resource", i want to cast it to my model class.
like we do in java : Model model=resource.adaptTo(Model.class);
Something similar to this.