On Sunday, August 28, 2011 1:08:45 PM UTC-4, pbreit wrote:
>
> Put ParseEmote in the same controller and just call it like this:
>
>       {{=ParseEmote(shout.Shout)}}
>

Note, functions/objects defined in the controller are generally not 
available in the view unless explicitly passed in the dict returned by the 
called action. The view is executed in a copy of the same environment the 
controller is executed in (i.e., with all the models), updated to include 
the variables returned in the dict by the action.

Anthony

Reply via email to