Would anybody cry if I change the render argument order to put the
template always first. Either:
render(template, engine=None, variables=None, ... cache args)
Or:
render(template, variables=None, engine=None, ... cache args)
That would get rid of the moving argument, but people using
non-default templates would have to change their controllers.
Alternatively, we can keep backward compatibility and add a third
'variables' arg this way:
1) Three positional args means (engine, template, variables).
2) Two positional args means (engine, template) if the latter is a string.
3) Two positional args means (template, variables) if the latter is
not a string.
4) One positional arg means (template,).
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-devel" 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-devel?hl=en
-~----------~----~----~----~------~----~------~--~---