I want to invoke non-getter methods in sightly, is that possible?
For example, HashMap.size()
I want to invoke non-getter methods in sightly, is that possible?
For example, HashMap.size()
You can call any publicly accessible method on your Use objects or on the global objects available to your Sightly scripts, as long as the method doesn't need parameters.
For more details about the implementation of discovering the available methods on your objects you could check RenderUtils.java.
If I am not wrong you can do <p>${hashMap.size}</p>
now using this with arguments I have absolutely no clue :)
I think that Gabriel Walt would be the best person to ask...