You can use a view_config with no renderer, then call `render_to_response`

This is my preferred method, because it gives me control within the views 
themselves.

If you're talking about changing an entire global template directory, and 
not just for some views, something like what Chris described would probably 
be easier.

===========

    from pyramid.renderers import render_to_response

    class Foo(baseClass):
          
         @view_config(route_name="profile"):
         def profile(self):
                version = derive_version()
                if version:
                    return render_to_response("profile-v%s.mako" % version, 
{}, self.request)
                 return render_to_response("profile.mako", {}, self.request)
             

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to