[Catalyst] Modifying a value returned with DBIC

Octavian Rasnita orasnita at gmail.com
Fri Jan 5 10:54:14 GMT 2007


From: "Xavier Robin" <robin0 at etu.unige.ch>
> I solved this thing myself by using the replace method described here :
> http://search.cpan.org/~abw/Template-Toolkit-2.15/lib/Template/Manual/VMethods.pod
>
> So in your template:
>
> [% FOREACH message IN messages %]
> <p>[% message.replace('\n', '<br>') %]
> [% END %]
>
> That should do it !
>
> Xavier

Thanks for this.

I have found another way for this simple thing, but I might need this method 
for more complex changes.

For replacing \n I use [% message | html_line_break %].

Thanks.

Octavian




More information about the Catalyst mailing list