mvel

Optional Parameter in MVEL Functions

Is there a way to get MVEL 2.0 ( http://mvel.codehaus.org/ ) to work with functions with optional parameters? I would like to be able to eval this: trunc('blahblah',2) but also trunc('blahblah',2,'[...]'); Now i have tried: def trunc(param1,param2,param3) { ... impl ... } That gives an exception if i try to call it with only 3 pa...

Formatting orb tags in MVEL

How to remove the whitespace line generat by @code{}, @if{}, @foreach{}, @end{} ect Orb Tags in the result of MVEL 2.0 Templating ? ? ? ? ...