Why didn't it work? What was the error message you received?
On Thu, Mar 8, 2012 at 4:22 AM, Annet <[email protected]> wrote: > In a view I have th following code to generate a vertical menu: > > {{for _name,_active,_link in response.admin_menu:}} > <li> > <a {{if _active:}} class="active" {{pass}} > onclick="web2py_component('{{=_link}}','component')">{{=_name.replace('_',' > ')}}</a> > </li> > {{pass}} > > Some of the menu items contain a _ which in the menu I would like to > replace with a space. I tried: > > {{=_name.replace('_',' ')}} > > ... but that doesn't work. What is the correct syntax? > > > Kind regards, > > Annet

