[mir-coders] Problems with nested utility functions in templates

briganzia-informatica briganzia.informatica at briganzia.org
Mon Jan 14 05:53:10 PST 2008


Hi,
I use nested utility functions  on my startpage.template to get the first 
500 chars and strip off html tags 

...
<list myvarsfromtemplate as h>
<assign cont=h.content_data>
${utility.subString(utility.regexpreplace(cont,"<(.|\n)+?>",""),0,"500")}
...
</list> 

If I use that nested function out of cycle it rules well, but if I use it in 
<list..> </list> Mir fall in a loop and exhausted all available memory, even 
if I try to split my nested functions and use them separetely
Of course that cycle without nested functions rules well...
So, what I'm doing of wrong? 

Thanks in advance 




More information about the mir-coders mailing list