Re: core.template.Context

2005-09-07 Thread Jacob Kaplan-Moss
On Sep 7, 2005, at 12:34 PM, Brant Harris wrote: core.template.Context What's the reason for this class? I can't see any point to it other than as a dictionary wrapper. It seems better to do: t.render("answer": 42) Rather then: c = Context({"answer&quo

Re: core.template.Context

2005-09-07 Thread Brant Harris
Bah just saw the new programmer's template tutorial. Although I still think it'd be nice if you could just render a dict as well.

core.template.Context

2005-09-07 Thread Brant Harris
core.template.Context What's the reason for this class? I can't see any point to it other than as a dictionary wrapper. It seems better to do: t.render("answer": 42) Rather then: c = Context({"answer": 42) t.render(c) Unless there is another reason for it?