On Wed, Feb 3, 2010 at 8:48 AM, Black Hand <[email protected]> wrote:
> Hi Ppl
>
> exist any real difference if y pass a variable in context (c. ) or
> pass directly using extra_vars ? threading considerations ?
> performance ? any consideration in template engine (we are using
> jinja2 now)

'c' was a convention in Myghty, which Pylons came from.  'extra_vars'
came from Buffet, an earlier templating system in Pylons. The
difference is stylistic.  'extra_vars' was left there in case anybody
needed/wanted it. But most people use 'c' instead.

> iirc access objects atributes take slightly more time that access
> objects in the namespace, because python do two lookups instead of
> one.

It does, but the speed of that is imperceptible. Reading the template
from disk is a thousand times slower.

-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to